From 40c47a8e67dfa779665e5e75bf7070e65309f708 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Thu, 24 Jul 2025 15:26:19 -0700 Subject: [PATCH] Fix type error. --- src/scripts/api.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/api.ts b/src/scripts/api.ts index cb4e5694f..ad22ed68c 100644 --- a/src/scripts/api.ts +++ b/src/scripts/api.ts @@ -278,8 +278,8 @@ export class ComfyApi extends EventTarget { * Feature flags received from the backend server. */ serverFeatureFlags: Record = {} - - /** + + /** * Map of notification toasts by ID */ #notificationToasts = new Map() @@ -921,6 +921,7 @@ export class ComfyApi extends EventTarget { taskType: 'Running', prompt, // prompt[1] is the prompt id + // @ts-expect-error - prompt[1] is the prompt id remove: { name: 'Cancel', cb: () => api.interrupt(prompt[1]) } })), Pending: data.queue_pending.map((prompt: TaskPrompt) => ({