mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
Remove misleading console error on paste (#1282)
This commit is contained in:
@@ -1128,7 +1128,7 @@ export class ComfyApp {
|
||||
|
||||
// No image found. Look for node data
|
||||
data = data.getData('text/plain')
|
||||
let workflow: ComfyWorkflowJSON
|
||||
let workflow: ComfyWorkflowJSON | null = null
|
||||
try {
|
||||
data = data.slice(data.indexOf('{'))
|
||||
workflow = JSON.parse(data)
|
||||
@@ -1138,7 +1138,7 @@ export class ComfyApp {
|
||||
data = data.slice(data.indexOf('{'))
|
||||
workflow = JSON.parse(data)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
workflow = null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user