Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/scripts/app.ts
Co-authored-by: Alexander Brown <[email protected]>
  • Loading branch information
r-vage and DrJKL authored Dec 4, 2025
commit d14ddcb31c18f863bef67ca223ed00bf78adaa8e
12 changes: 4 additions & 8 deletions src/scripts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1448,24 +1448,20 @@
} catch (err) {
console.error('Failed to parse workflow:', err)
this.showErrorOnFileLoad(file)
return
}

// Validate workflow is a proper object
if (
!workflowObj ||
typeof workflowObj !== 'object' ||

Check failure on line 1455 in src/scripts/app.ts

View workflow job for this annotation

GitHub Actions / collect

Variable 'workflowObj' is used before being assigned.

Check failure on line 1455 in src/scripts/app.ts

View workflow job for this annotation

GitHub Actions / setup

Variable 'workflowObj' is used before being assigned.
Array.isArray(workflowObj)
) {
console.error('Invalid workflow structure')
this.showErrorOnFileLoad(file)
} else {
await this.loadGraphData(workflowObj, true, true, fileName, {
openSource
})
return
}

await this.loadGraphData(workflowObj, true, true, fileName, {
openSource
})
return
}

// Use parameters as fallback when no workflow exists
Expand Down
Loading