Skip to content

Commit

Permalink
fix(graph): send right id to delete event for triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Apr 17, 2024
1 parent 93f156f commit b29b722
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/nodes/TriggerNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
v-if="!execution"
class="circle-button"
:class="[`bg-${color}`]"
@click="$emit(EVENTS.DELETE, {id, section: SECTIONS.TRIGGERS})"
@click="$emit(EVENTS.DELETE, {id: triggerId, section: SECTIONS.TRIGGERS})"
>
<tooltip :title="Utils.translate('delete')">
<Delete class="button-icon" alt="Delete task" />
Expand Down Expand Up @@ -65,6 +65,9 @@
...this.data,
unused: this.data.node?.triggerDeclaration?.disabled || this.data.node?.trigger?.disabled
}
},
triggerId() {
return Utils.afterLastDot(this.id);
}
},
emits: [
Expand Down

0 comments on commit b29b722

Please sign in to comment.