Fix connection-removed event data

This commit is contained in:
2025-10-18 22:49:03 +02:00
parent 585404c549
commit ba9f946b0a
2 changed files with 2 additions and 2 deletions

View File

@@ -346,7 +346,7 @@ export const connections = function(superClass) {
if (connection) { if (connection) {
this._dispatchChangeEvent({ this._dispatchChangeEvent({
type: 'connection-removed', type: 'connection-removed',
data: { connectionId } data: connection
}); });
} }

View File

@@ -240,7 +240,7 @@ export class TpFlowNodes extends zoom(panning(connections(LitElement))) {
_dispatchChangeEvent(detail = {}) { _dispatchChangeEvent(detail = {}) {
this.dispatchEvent(new CustomEvent('flow-changed', { this.dispatchEvent(new CustomEvent('flow-changed', {
detail: { detail: {
type: detail.type, // Type of change: 'node-added', 'node-removed', 'node-moved', 'connection-added', 'node-data-changed'. type: detail.type, // Type of change: 'node-added', 'node-removed', 'node-moved', 'connection-added', 'connection-removed', 'node-data-changed'.
data: detail.data, data: detail.data,
}, },
bubbles: true, bubbles: true,