浏览代码

Fixed progress bug

n1474335 2 年之前
父节点
当前提交
9e679f411c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/web/waiters/OutputWaiter.mjs

+ 1 - 1
src/web/waiters/OutputWaiter.mjs

@@ -1217,7 +1217,7 @@ class OutputWaiter {
         }
         this.manager.tabs.updateTabHeader(inputNum, tabStr, "output");
         if (this.manager.worker.recipeConfig !== undefined) {
-            this.manager.tabs.updateTabProgress(inputNum, this.outputs[inputNum].progress, this.manager.worker.recipeConfig.length, "output");
+            this.manager.tabs.updateTabProgress(inputNum, this.outputs[inputNum]?.progress, this.manager.worker.recipeConfig.length, "output");
         }
 
         const tabItem = this.manager.tabs.getTabItem(inputNum, "output");