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