diff --git a/easyapi/api.py b/easyapi/api.py index bfac97c..f5f1ef0 100644 --- a/easyapi/api.py +++ b/easyapi/api.py @@ -108,8 +108,8 @@ def register_routes(): prompt_id = json_data["prompt_id"] current_queue = PromptServer.instance.prompt_queue.get_current_queue() queue_running = current_queue[0] - if queue_running is not None: - if queue_running[1] == prompt_id: + if queue_running is not None and len(queue_running) > 0: + if len(queue_running[0]) > 0 and queue_running[0][1] == prompt_id: nodes.interrupt_processing() delete_func = lambda a: a[1] == prompt_id diff --git a/static/js/workflows.js b/static/js/workflows.js index 75dd7ab..6c733fb 100644 --- a/static/js/workflows.js +++ b/static/js/workflows.js @@ -56,6 +56,7 @@ class EasyApiWorkflows { "channel": "red" } } + delete output[o]['_meta'] } return output }