Skip to content

Load JSON (API format) #1750

@ecornbower

Description

@ecornbower

The save / load JSON (API format) is currently broken in the latest release.

Steps to reproduce:

  1. Load the default workflow.
  2. Save as JSON (API) format
  3. Clear the workflow, then load the JSON that was just saved.

Actual result:

Nothing will happen, but an error will be logged:

TypeError
graphData.nodes is not iterable
TypeError: graphData.nodes is not iterable
    at ComfyApp.loadGraphData (http://desktop-01:8080/scripts/app.js:1439:27)
    at reader.onload (http://desktop-01:8080/scripts/app.js:1759:10)

Expected result:

Workflow is reloaded.

Edit: Not sure if this is the intended functionality, but would really be nice to be able to re-import exported JSON API files to make changes and re-save back out again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions