schummar-table 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -232,14 +232,10 @@ function useTableStateStorage(table) {
232
232
  return;
233
233
  }
234
234
  const {
235
- storage
235
+ storage,
236
+ id
236
237
  } = persist;
237
- const keys = "keys" in storage ? await storage.keys() : await Promise.all(Array(storage.length).fill(0).map((_x, i) => storage.key(i)));
238
- for (const key of keys) {
239
- if (key !== null) {
240
- await storage.removeItem(key);
241
- }
242
- }
238
+ await storage.removeItem(storageName(id));
243
239
  q.clear();
244
240
  });
245
241
  }