fix: don't resurface missing node warnings on workflow tab switch

When switching between already-opened workflows, the error overlay
for missing nodes was re-shown even after being dismissed. This happened
because openWorkflow always passed showMissingNodes: true, causing
pendingWarnings to be re-set on every loadGraphData call.

Gate showMissingNodes by loadFromRemote, matching the existing pattern
for showMissingModels. Warnings only surface on first load from remote,
not on subsequent tab switches.
This commit is contained in:
bymyself
2026-03-17 14:32:22 +00:00
parent 2af3940867
commit 6de37b0c62

View File

@@ -240,7 +240,7 @@ export const useWorkflowService = () => {
workflow,
{
showMissingModels: loadFromRemote,
showMissingNodes: true,
showMissingNodes: loadFromRemote,
checkForRerouteMigration: false,
deferWarnings: true
}