Quellcode durchsuchen

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 vor 5 Monaten
Ursprung
Commit
dd4419fd5e
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 2 neuen und 7 gelöschten Zeilen
  1. 2
    7
      web/app/components/workflow/store/workflow/workflow-slice.ts

+ 2
- 7
web/app/components/workflow/store/workflow/workflow-slice.ts Datei anzeigen

@@ -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,

Laden…
Abbrechen
Speichern