From 94ab09f7ebbd050901e9228832166165803e5841 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Tue, 24 Feb 2026 14:12:17 +1300 Subject: [PATCH] fix: restore legacy workflow.directoryPath fallback for image hydration Co-Authored-By: Claude Opus 4.6 --- src/store/workflowStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/workflowStore.ts b/src/store/workflowStore.ts index 78e9ba36..9d1c9590 100644 --- a/src/store/workflowStore.ts +++ b/src/store/workflowStore.ts @@ -1541,8 +1541,8 @@ const workflowStoreImpl: StateCreator = (set, get) => ({ const configs = loadSaveConfigs(); const savedConfig = workflow.id ? configs[workflow.id] : null; - // Determine the workflow directory path (passed in or from saved config) - const directoryPath = workflowPath || savedConfig?.directoryPath || null; + // Determine the workflow directory path (passed in, from saved config, or embedded in legacy workflow JSON) + const directoryPath = workflowPath || savedConfig?.directoryPath || workflow.directoryPath || null; // Hydrate images if we have a directory path and the workflow has image refs let hydratedWorkflow = workflow;