Browse Source

fix: can't reading 'type' in loop breakpoint block

Ahmad Kholid 3 years ago
parent
commit
e066c202b9

+ 8 - 4
src/background/workflow-engine/blocks-handler/handler-loop-breakpoint.js

@@ -4,10 +4,14 @@ function loopBreakpoint(block, { prevBlockData }) {
   const currentLoop = this.loopList[block.data.loopId];
 
   return new Promise((resolve) => {
-    const validLoopData =
-      currentLoop.type === 'numbers'
-        ? true
-        : currentLoop.index <= currentLoop.data.length - 1;
+    let validLoopData = false;
+
+    if (currentLoop) {
+      validLoopData =
+        currentLoop.type === 'numbers'
+          ? true
+          : currentLoop.index <= currentLoop.data.length - 1;
+    }
 
     if (
       currentLoop &&

+ 1 - 0
src/components/newtab/settings/SettingsCloudBackup.vue

@@ -14,6 +14,7 @@
           :key="location"
           :active="location === state.activeTab"
           :disabled="backupState.uploading || backupState.deleting"
+          color="bg-box-transparent"
           class="mb-1 cursor-pointer"
           @click="state.activeTab = location"
         >

+ 1 - 1
src/components/newtab/workflow/WorkflowBuilder.vue

@@ -717,7 +717,7 @@ export default {
   background-color: transparent !important;
   border-top: 10px solid transparent;
   border-radius: 0;
-  border-left: 10px solid white;
+  border-left: 10px solid theme('colors.accent');
   border-right: 10px solid transparent;
   border-bottom: 10px solid transparent;
 }