mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: remove/clear is not async
This commit is contained in:
@@ -51,7 +51,7 @@ export default class CachedCollection {
|
||||
async removeItem(id) {
|
||||
if (this.transactionOpen) return;
|
||||
if (this.map.delete(id)) {
|
||||
this.indexer.remove(id);
|
||||
await this.indexer.remove(id);
|
||||
await this.indexer.deindex(id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user