Browse Source

fix: duplicate value when using first row as keys

Ahmad Kholid 3 years ago
parent
commit
67034aa1a3
3 changed files with 4 additions and 4 deletions
  1. 1 1
      src/newtab/App.vue
  2. 2 2
      src/utils/helper.js
  3. 1 1
      src/utils/shared.js

+ 1 - 1
src/newtab/App.vue

@@ -6,7 +6,7 @@
     </main>
     <ui-dialog />
     <div
-      v-if="false"
+      v-if="isUpdated"
       class="p-4 shadow-2xl z-50 fixed bottom-8 left-1/2 -translate-x-1/2 rounded-lg bg-accent text-white flex items-center"
     >
       <v-remixicon name="riInformationLine" class="mr-3" />

+ 2 - 2
src/utils/helper.js

@@ -44,9 +44,9 @@ export function convert2DArrayToArrayObj(values) {
       }
 
       currentColumn[key] = values[columnIndex][rowIndex];
-
-      result.push(currentColumn);
     }
+
+    result.push(currentColumn);
   }
 
   return result;

+ 1 - 1
src/utils/shared.js

@@ -620,7 +620,7 @@ export const tasks = {
     outputs: 1,
     allowedInputs: true,
     maxConnection: 1,
-    refDataKeys: ['selector'],
+    refDataKeys: ['selector', 'filePaths'],
     data: {
       findBy: 'cssSelector',
       selector: '',