Explorar el Código

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

Ahmad Kholid hace 2 años
padre
commit
63cf442f5c
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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
   dbStorage.tablesData
     .where('tableId')
     .where('tableId')
     .equals(tableId)
     .equals(tableId)
-    .modify({ items: toRaw(tableData.value.items) })
+    .modify({
+      items: toRaw(tableData.value.items),
+      columnsIndex: toRaw(columnsIndex),
+    })
     .then(() => {
     .then(() => {
       triggerRef(table);
       triggerRef(table);
     });
     });