From 83beab4c9200417d43055f6fcd46ef45c95146e0 Mon Sep 17 00:00:00 2001 From: jamesread Date: Sun, 25 Feb 2024 00:49:17 +0000 Subject: [PATCH] bugfix: onExecutionFinished ignores actions it cannot find --- webui.dev/js/marshaller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webui.dev/js/marshaller.js b/webui.dev/js/marshaller.js index ebd8d5f..b578197 100644 --- a/webui.dev/js/marshaller.js +++ b/webui.dev/js/marshaller.js @@ -54,6 +54,10 @@ function onExecutionFinished (evt) { const actionButton = window.actionButtons[logEntry.actionTitle] + if (actionButton === undefined) { + return + } + switch (actionButton.popupOnStart) { case 'execution-button': document.querySelector('execution-button#execution-' + logEntry.executionTrackingId).onExecutionFinished(logEntry)