diff --git a/web/app/components/workflow/store/workflow/workflow-slice.ts b/web/app/components/workflow/store/workflow/workflow-slice.ts index e1f2fd91c5..6bb69cdfcd 100644 --- a/web/app/components/workflow/store/workflow/workflow-slice.ts +++ b/web/app/components/workflow/store/workflow/workflow-slice.ts @@ -37,13 +37,8 @@ export type WorkflowSliceShape = { export const createWorkflowSlice: StateCreator = set => ({ workflowRunningData: undefined, setWorkflowRunningData: workflowRunningData => set(() => ({ workflowRunningData })), - clipboardElements: (() => { - const storedElements = localStorage.getItem('clipboard_elements') - return storedElements ? JSON.parse(storedElements) : [] - })(), - setClipboardElements: (clipboardElements) => { - localStorage.setItem('clipboard_elements', JSON.stringify(clipboardElements)) - }, + clipboardElements: [], + setClipboardElements: clipboardElements => set(() => ({ clipboardElements })), selection: null, setSelection: selection => set(() => ({ selection })), bundleNodeSize: null,