File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { useSettingStore } from '@/stores/settingStore'
1111import { useToastStore } from '@/stores/toastStore'
1212import { ComfyWorkflow , useWorkflowStore } from '@/stores/workflowStore'
1313import { useWorkspaceStore } from '@/stores/workspaceStore'
14- import { appendJsonExt } from '@/utils/formatUtil'
14+ import { appendJsonExt , generateUUID } from '@/utils/formatUtil'
1515
1616import { useDialogService } from './dialogService'
1717
@@ -95,7 +95,7 @@ export const useWorkflowService = () => {
9595 await workflowStore . saveWorkflow ( workflow )
9696 } else {
9797 // Generate new id when saving existing workflow as a new file
98- const id = crypto . randomUUID ( )
98+ const id = generateUUID ( )
9999 const state = JSON . parse (
100100 JSON . stringify ( workflow . activeState )
101101 ) as ComfyWorkflowJSON
You can’t perform that action at this time.
0 commit comments