Przeglądaj źródła

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

Ahmad Kholid 2 lat temu
rodzic
commit
63cf442f5c
1 zmienionych plików z 4 dodań i 1 usunięć
  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);
     });