Fix load of string node id workflow (#744)

* Update litegraph

* Fix string node id

* Add playwright test

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-09-05 08:16:41 -07:00
committed by GitHub
parent 9d855d637e
commit 38c957d3a9
8 changed files with 393 additions and 10 deletions

View File

@@ -377,7 +377,7 @@ app.registerExtension({
data = JSON.parse(data)
const nodeIds = Object.keys(app.canvas.selected_nodes)
for (let i = 0; i < nodeIds.length; i++) {
const node = app.graph.getNodeById(Number.parseInt(nodeIds[i]))
const node = app.graph.getNodeById(nodeIds[i])
// @ts-expect-error
const nodeData = node?.constructor.nodeData