Browse Source

Revert "Support for copying nodes between workflows (This feature is unrelated to remove functions. When using the copy function, the browser will permanently retain the last copied node)."" (#19708)

tags/1.4.0
crazywoola 5 months ago
parent
commit
dd4419fd5e
No account linked to committer's email address
1 changed files with 2 additions and 7 deletions
  1. 2
    7
      web/app/components/workflow/store/workflow/workflow-slice.ts

+ 2
- 7
web/app/components/workflow/store/workflow/workflow-slice.ts View File

@@ -37,13 +37,8 @@ export type WorkflowSliceShape = {
export const createWorkflowSlice: StateCreator<WorkflowSliceShape> = 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,

Loading…
Cancel
Save