The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix delete sometimes not properly refreshing queue state.
comfyanonymous6e40393b6bb2
diff --git a/webshit/index.html b/webshit/index.htmlindex b6cf3d692..683d96480 100644--- a/webshit/index.html+++ b/webshit/index.html@@ -534,7 +534,7 @@ document.addEventListener('paste', e=>{}});-function deleteQueueElement(delete_id) {+function deleteQueueElement(delete_id, then) {fetch('/queue', {method: 'POST',headers: {@@ -544,6 +544,7 @@ function deleteQueueElement(delete_id) {}).then(data => {console.log(data);+ then();}).catch(error => console.error(error))}@@ -586,8 +587,7 @@ function loadQueue() {button.style.fontSize = "10px";button.delete_id = id;button.onclick = function(event) {- deleteQueueElement(event.target.delete_id);- loadQueue();+ deleteQueueElement(event.target.delete_id, loadQueue);};append_to_element.appendChild(button);}