mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +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
|
// No image found. Look for node data
|
||||||
data = data.getData('text/plain')
|
data = data.getData('text/plain')
|
||||||
let workflow: ComfyWorkflowJSON
|
let workflow: ComfyWorkflowJSON | null = null
|
||||||
try {
|
try {
|
||||||
data = data.slice(data.indexOf('{'))
|
data = data.slice(data.indexOf('{'))
|
||||||
workflow = JSON.parse(data)
|
workflow = JSON.parse(data)
|
||||||
@@ -1138,7 +1138,7 @@ export class ComfyApp {
|
|||||||
data = data.slice(data.indexOf('{'))
|
data = data.slice(data.indexOf('{'))
|
||||||
workflow = JSON.parse(data)
|
workflow = JSON.parse(data)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
workflow = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user