mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-23 07:50:15 +00:00
Update Litegraph (TypeScript conversion) (#1145)
* Fix various type errors * Fix rest of ts errors * update litegraph * nit
This commit is contained in:
@@ -98,6 +98,7 @@ class GroupNodeBuilder {
|
||||
const nodesInOrder = app.graph.computeExecutionOrder(false)
|
||||
this.nodes = this.nodes
|
||||
.map((node) => ({ index: nodesInOrder.indexOf(node), node }))
|
||||
// @ts-expect-error id might be string
|
||||
.sort((a, b) => a.index - b.index || a.node.id - b.node.id)
|
||||
.map(({ node }) => node)
|
||||
}
|
||||
@@ -801,7 +802,6 @@ export class GroupNodeHandler {
|
||||
this.groupData.nodeData.nodes.map((n, i) => {
|
||||
const innerNode = LiteGraph.createNode(n.type)
|
||||
innerNode.configure(n)
|
||||
// @ts-expect-error
|
||||
innerNode.id = `${this.node.id}:${i}`
|
||||
return innerNode
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user