fix(editor): Skip disabled nodes when detecting workflow issues (#9610)

This commit is contained in:
Milorad FIlipović
2024-06-04 13:26:57 +02:00
committed by GitHub
parent 87faa58045
commit 245c63f216
3 changed files with 73 additions and 41 deletions

View File

@@ -175,7 +175,9 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, () => {
const nodesIssuesExist = computed(() => {
for (const node of workflow.value.nodes) {
if (node.issues === undefined || Object.keys(node.issues).length === 0) {
const isNodeDisabled = node.disabled === true;
const noNodeIssues = node.issues === undefined || Object.keys(node.issues).length === 0;
if (isNodeDisabled || noNodeIssues) {
continue;
}