[BugFix] Fix open workflow after insert (#2138)

This commit is contained in:
Chenlei Hu
2025-01-03 11:09:28 -05:00
committed by GitHub
parent 5717c33a0b
commit ea489851ed
4 changed files with 34 additions and 6 deletions

View File

@@ -821,6 +821,11 @@ export class ComfyPage {
async getNodeRefById(id: NodeId) {
return new NodeReference(id, this)
}
async getNodes() {
return await this.page.evaluate(() => {
return window['app'].graph.nodes
})
}
async getNodeRefsByType(type: string): Promise<NodeReference[]> {
return Promise.all(
(