fix(editor): Fix rundata type errors (no-changelog) (#9443)

This commit is contained in:
Csaba Tuncsik
2024-05-21 13:19:56 +02:00
committed by GitHub
parent 277511a9b5
commit cd751e7cc8
13 changed files with 95 additions and 55 deletions

View File

@@ -110,7 +110,8 @@ export default defineComponent({
const triggeredNode = this.workflowsStore.executedNode;
return (
this.workflowRunning &&
(this.workflowsStore.isNodeExecuting(this.node.name) || triggeredNode === this.node.name)
(this.workflowsStore.isNodeExecuting(this.node?.name ?? '') ||
triggeredNode === this.node?.name)
);
},
workflowRunning(): boolean {
@@ -148,7 +149,7 @@ export default defineComponent({
const executedNode = this.workflowsStore.executedNode;
return (
this.node &&
!!this.node &&
!this.node.disabled &&
this.isTriggerNode &&
waitingOnWebhook &&
@@ -173,7 +174,7 @@ export default defineComponent({
return '';
}
if (this.isTriggerNode && this.node.disabled) {
if (this.isTriggerNode && this.node?.disabled) {
return this.$locale.baseText('ndv.execute.nodeIsDisabled');
}