Comfy-Org / Comfy-Org/ComfyUI

Inserting workflow on canvas silently fails when the workflow has an issue

Open
#6,644 3 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Expected Behavior

When selecting the menu option to insert workflow into canvas, the workflow is inserted or display a helpful error message.

### Actual Behavior

When selecting the menu option to insert workflow into canvas, the insertion of the workflow silently fails.

### Steps to Reproduce

Workflow used: [wildcardx_xl_turbo_basic.json](https://github.com/user-attachments/files/18598409/wildcardx_xl_turbo_basic.json)

- Add the given workflow to your workflows.
- From workflow section in ComfyUI, click the workflow with the left mouse and "Insert"

### Debug Logs

```powershell
Console log:
components-manager.js:769 Empty components: policy ignored
index-p6KSJ2Zq.js:7707 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')
at index-p6KSJ2Zq.js:7707:68
at Array.map ()
at RerouteNode.onConnectionsChange (index-p6KSJ2Zq.js:7707:37)
at RerouteNode.configure (index-DIU5yZe9.js:35142:37)
at LGraph2.configure (index-DIU5yZe9.js:44993:17)
at LGraph$1.configure (index-DIU5yZe9.js:120908:26)
at LGraph.configure (reroutePrimitive.js:14:29)
at new LGraph (index-DIU5yZe9.js:43948:17)
at Object.insertWorkflow (index-DIU5yZe9.js:119561:19)
```

### Other

Using the workflow directly is possible, so instead of clicking "insert" you just open the workflow, it generates imgs fine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.