From 229ae682e5db3c4327fc3cc832360c6241899101 Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Thu, 15 May 2025 10:22:15 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Support=20for=20copying=20nodes=20bet?= =?UTF-8?q?ween=20workflows=20(This=20feature=20is=20unrelate=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e040f8069b476bc15e39474d770950125c6e6568. --- .../components/workflow/store/workflow/workflow-slice.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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,