mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
Fix type error.
This commit is contained in:
committed by
Jennifer Weber
parent
f0f4313afa
commit
40c47a8e67
@@ -278,8 +278,8 @@ export class ComfyApi extends EventTarget {
|
||||
* Feature flags received from the backend server.
|
||||
*/
|
||||
serverFeatureFlags: Record<string, unknown> = {}
|
||||
|
||||
/**
|
||||
|
||||
/**
|
||||
* Map of notification toasts by ID
|
||||
*/
|
||||
#notificationToasts = new Map<string, any>()
|
||||
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user