[fix] handle cancelling pending jobs

This commit is contained in:
Richard Yu
2025-08-05 19:27:49 -07:00
committed by Jennifer Weber
parent 40c47a8e67
commit 980b727ff8

View File

@@ -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', {