Parcourir la source

bugfix: onExecutionFinished ignores actions it cannot find

jamesread il y a 2 ans
Parent
commit
83beab4c92
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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]
   const actionButton = window.actionButtons[logEntry.actionTitle]
 
 
+  if (actionButton === undefined) {
+    return
+  }
+
   switch (actionButton.popupOnStart) {
   switch (actionButton.popupOnStart) {
     case 'execution-button':
     case 'execution-button':
       document.querySelector('execution-button#execution-' + logEntry.executionTrackingId).onExecutionFinished(logEntry)
       document.querySelector('execution-button#execution-' + logEntry.executionTrackingId).onExecutionFinished(logEntry)