mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
core: fix topic with notes not deleting
This commit is contained in:
@@ -56,9 +56,12 @@ export default class Topic {
|
||||
const noteIds = this._db.notes.topicReferences.get(this.id);
|
||||
if (!noteIds.length) return;
|
||||
|
||||
return this._db.notes.deleteFromNotebook(
|
||||
this._notebookId,
|
||||
this.id,
|
||||
return this._db.notes.removeFromNotebook(
|
||||
{
|
||||
topic: this.id,
|
||||
id: this._notebookId,
|
||||
rebuildCache: true
|
||||
},
|
||||
...noteIds
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user