PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 All 128 releases
← All changes | src/Agent/state/workflows.js +4 -1 3.2.1 → 3.2.2 View file →
@@ -15,8 +15,10 @@
15 15 const state = (set, get) => ({
16 16 workflow: null,
17 17 // Data for the tool component that shows up at the end of a workflow
18 18 whenFinishedToolProps: null,
19 + // A staged tool restored from storage; its confirm never renders.
20 + reloadedToolProps: null,
19 21 getWorkflow: () => {
20 22 const curr = get().workflow;
21 23 // Workflows may define a "parent" workflow via templateId
22 24 const currId = curr?.templateId || curr?.id;
@@ -126,8 +128,9 @@
126 128 whenFinishedToolProps: null,
127 129 workflowData: null,
128 130 };
129 131 }
130 - return merged;
132 + return { ...merged, reloadedToolProps: merged.whenFinishedToolProps };
131 133 },
134 + partialize: ({ reloadedToolProps, ...persisted }) => persisted,
132 135 }),
133 136 );