Skip to content

Comments

Prevent server action crash when workflow file name is missing#333

Open
Titas-Ghosh wants to merge 1 commit intoControlCore-Project:devfrom
Titas-Ghosh:fix/server-actions-null-filename
Open

Prevent server action crash when workflow file name is missing#333
Titas-Ghosh wants to merge 1 commit intoControlCore-Project:devfrom
Titas-Ghosh:fix/server-actions-null-filename

Conversation

@Titas-Ghosh
Copy link

Fixes #332
Fixes a runtime crash in server actions when the current workflow has no fileName (new/unsaved tab).

Changes made

  • I added a guarded graph-name resolver in 6-server.js.
  • Updated build, debug, run, clear, stop, and destroy to use it.
  • If no GraphML file is loaded, the app now shows: Open a GraphML file before using server actions and exits safely (no crash).

Server actions now fail gracefully instead of throwing on fileName.split(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant