refactor(core): Unify failed and error execution status (no-changelog) (#8943)

This commit is contained in:
Iván Ovejero
2024-03-25 17:52:07 +01:00
committed by GitHub
parent 1fb0dd4f1c
commit 69807a5efb
20 changed files with 36 additions and 26 deletions

View File

@@ -285,10 +285,7 @@ export default defineComponent({
return this.workflowsStore.getWorkflowResultDataByNodeName(this.data?.name || '') || [];
},
hasIssues(): boolean {
if (
this.nodeExecutionStatus &&
['crashed', 'error', 'failed'].includes(this.nodeExecutionStatus)
)
if (this.nodeExecutionStatus && ['crashed', 'error'].includes(this.nodeExecutionStatus))
return true;
if (this.pinnedData.hasData.value) return false;
if (this.data?.issues !== undefined && Object.keys(this.data.issues).length) {