fix(y-indexeddb): un-track doc when destroy (#3358)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-24 15:23:16 +00:00
1 parent e6e98975ed
commit 2cf4e8ebce
1 file changed
+1 -2
+1 -2
View File
@@ -239,8 +239,7 @@ export const createIndexedDBProvider = (
return destroyHandlerMap.get(doc)!;
}
const fn = async function handleDestroy() {
const db = await dbPromise;
db.close();
unTrackDoc(doc.guid, doc);
};
destroyHandlerMap.set(doc, fn);
return fn;