idb-bridge: fix indexes when restoring from dump
This commit is contained in:
parent
a4e65c462a
commit
b8200de6f6
@ -330,9 +330,8 @@ export class MemoryBackend implements Backend {
|
|||||||
originalData: new BTree([], compareKeys),
|
originalData: new BTree([], compareKeys),
|
||||||
originalName: indexName,
|
originalName: indexName,
|
||||||
};
|
};
|
||||||
const storeData = objectStoreData;
|
objectStore.committedIndexes[indexName] = newIndex;
|
||||||
|
objectStoreData.forEach((v, k) => {
|
||||||
storeData.forEach((v, k) => {
|
|
||||||
try {
|
try {
|
||||||
this.insertIntoIndex(newIndex, k, v.value, indexSchema);
|
this.insertIntoIndex(newIndex, k, v.value, indexSchema);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user