diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/idb-bridge/src/MemoryBackend.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/idb-bridge/src/MemoryBackend.ts b/packages/idb-bridge/src/MemoryBackend.ts index 362b1cbc1..c1a1c12ea 100644 --- a/packages/idb-bridge/src/MemoryBackend.ts +++ b/packages/idb-bridge/src/MemoryBackend.ts @@ -330,9 +330,8 @@ export class MemoryBackend implements Backend { originalData: new BTree([], compareKeys), originalName: indexName, }; - const storeData = objectStoreData; - - storeData.forEach((v, k) => { + objectStore.committedIndexes[indexName] = newIndex; + objectStoreData.forEach((v, k) => { try { this.insertIntoIndex(newIndex, k, v.value, indexSchema); } catch (e) { |