Преглед изворни кода

bugfix: onExecutionFinished ignores actions it cannot find

jamesread пре 2 година
родитељ
комит
83beab4c92
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      webui.dev/js/marshaller.js

+ 4 - 0
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)