Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove misleading console error on paste
  • Loading branch information
huchenlei committed Oct 23, 2024
commit 4a9b10e2554670ad1a06db8d9d4677b6f3e1df3d
4 changes: 2 additions & 2 deletions src/scripts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -1138,7 +1138,7 @@ export class ComfyApp {
data = data.slice(data.indexOf('{'))
workflow = JSON.parse(data)
} catch (error) {
console.error(error)
workflow = null
}
}

Expand Down