mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix: repair notebook references in notes on sync
This commit is contained in:
@@ -37,7 +37,11 @@ export default class Topic {
|
||||
array.push(notebook);
|
||||
} else {
|
||||
const topicIndex = array[notebookIndex].topics.indexOf(topic.id);
|
||||
if (topicIndex > -1) return;
|
||||
if (topicIndex > -1) {
|
||||
if (!this.has(noteId)) topic.notes.push(noteId);
|
||||
continue;
|
||||
}
|
||||
|
||||
array[notebookIndex].topics.push(topic.id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user