mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: fix issue where notes directly in a notebook could not be unlinked (#2466)
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
This commit is contained in:
@@ -347,11 +347,12 @@ export default class Notes extends Collection {
|
||||
|
||||
for (const noteId of noteIds) {
|
||||
const note = this.note(noteId);
|
||||
if (!note || note.deleted || !note.notebooks) {
|
||||
if (!note || note.deleted) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (topicId) {
|
||||
if (!note.notebooks) continue;
|
||||
const { notebooks } = note;
|
||||
|
||||
const notebook = findById(notebooks, notebookId);
|
||||
|
||||
Reference in New Issue
Block a user