mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
[fix] handle cancelling pending jobs
This commit is contained in:
committed by
Jennifer Weber
parent
40c47a8e67
commit
980b727ff8
@@ -265,7 +265,12 @@ class ComfyList {
|
||||
: {
|
||||
name: 'Delete',
|
||||
cb: () =>
|
||||
api.deleteItem(this.#type, item.prompt.prompt_id)
|
||||
api.deleteItem(
|
||||
this.#type,
|
||||
Array.isArray(item.prompt)
|
||||
? item.prompt[1]
|
||||
: item.prompt.prompt_id
|
||||
)
|
||||
}
|
||||
return $el('div', { textContent: item.prompt.priority + ': ' }, [
|
||||
$el('button', {
|
||||
|
||||
Reference in New Issue
Block a user