Procházet zdrojové kódy

fix: can't insert multiple columns (#734)

Ahmad Kholid před 2 roky
rodič
revize
63cf442f5c
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/newtab/pages/storage/Tables.vue

+ 4 - 1
src/newtab/pages/storage/Tables.vue

@@ -287,7 +287,10 @@ function deleteRow(item) {
   dbStorage.tablesData
     .where('tableId')
     .equals(tableId)
-    .modify({ items: toRaw(tableData.value.items) })
+    .modify({
+      items: toRaw(tableData.value.items),
+      columnsIndex: toRaw(columnsIndex),
+    })
     .then(() => {
       triggerRef(table);
     });