mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 23:34:31 +00:00
[BugFix] Fix open workflow after insert (#2138)
This commit is contained in:
@@ -49,7 +49,7 @@ import {
|
||||
} from './pnginfo'
|
||||
import { $el, ComfyUI } from './ui'
|
||||
import { ComfyAppMenu } from './ui/menu/index'
|
||||
import { getStorageValue } from './utils'
|
||||
import { clone, getStorageValue } from './utils'
|
||||
import { type ComfyWidgetConstructor, ComfyWidgets } from './widgets'
|
||||
|
||||
export const ANIM_PREVIEW_WIDGET = '$$comfy_animation_preview'
|
||||
@@ -1271,11 +1271,7 @@ export class ComfyApp {
|
||||
reset_invalid_values = true
|
||||
}
|
||||
|
||||
if (typeof structuredClone === 'undefined') {
|
||||
graphData = JSON.parse(JSON.stringify(graphData))
|
||||
} else {
|
||||
graphData = structuredClone(graphData)
|
||||
}
|
||||
graphData = clone(graphData)
|
||||
|
||||
if (useSettingStore().get('Comfy.Validation.Workflows')) {
|
||||
// TODO: Show validation error in a dialog.
|
||||
|
||||
Reference in New Issue
Block a user