[API Node] Workaround custom node hijack on api.queuePrompt (#3589)

Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
This commit is contained in:
Chenlei Hu
2025-04-23 15:18:37 -04:00
committed by GitHub
parent 4244a0a258
commit f562cf27cd
2 changed files with 19 additions and 5 deletions

View File

@@ -1208,7 +1208,9 @@ export class ComfyApp {
const p = await this.graphToPrompt()
try {
const res = await api.queuePrompt(number, p, comfyOrgAuthToken)
api.authToken = comfyOrgAuthToken
const res = await api.queuePrompt(number, p)
delete api.authToken
executionStore.lastNodeErrors = res.node_errors ?? null
if (executionStore.lastNodeErrors?.length) {
this.canvas.draw(true, true)