diff --git a/packages/core/models/topic.js b/packages/core/models/topic.js index c67d0c21d..32c868292 100644 --- a/packages/core/models/topic.js +++ b/packages/core/models/topic.js @@ -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 ); }