fix: use getTitle() for node title resolution in getNodeRefsByTitle

Amp-Thread-ID: https://ampcode.com/threads/T-019c17a0-1d8c-746f-8ee0-0145b7f56561
This commit is contained in:
bymyself
2026-01-31 21:43:08 -08:00
parent 8cecf0ffe9
commit 1d3d64c0eb

View File

@@ -1609,7 +1609,7 @@ export class ComfyPage {
(
await this.page.evaluate((title) => {
return window['app'].graph.nodes
.filter((n: LGraphNode) => n.title === title)
.filter((n: LGraphNode) => n.getTitle() === title)
.map((n: LGraphNode) => n.id)
}, title)
).map((id: NodeId) => this.getNodeRefById(id))