mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix: items not deleting from collection
This commit is contained in:
@@ -50,10 +50,9 @@ export default class CachedCollection {
|
|||||||
|
|
||||||
async removeItem(id) {
|
async removeItem(id) {
|
||||||
if (this.transactionOpen) return;
|
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) {
|
exists(id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user