Просмотр исходного кода

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 месяцев назад
Родитель
Сommit
dd4419fd5e
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 2 добавлений и 7 удалений
  1. 2
    7
      web/app/components/workflow/store/workflow/workflow-slice.ts

+ 2
- 7
web/app/components/workflow/store/workflow/workflow-slice.ts Просмотреть файл

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

Загрузка…
Отмена
Сохранить