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) => ({