فهرست منبع

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)