From ad08fb81320fab0c565fd6e2c4929ea77ebf9d51 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 13 Dec 2025 19:32:44 +0200 Subject: [PATCH] chore(formatting_toolbar): address self-review --- apps/client/src/components/note_context.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts index caf9bdb13..15791c741 100644 --- a/apps/client/src/components/note_context.ts +++ b/apps/client/src/components/note_context.ts @@ -65,25 +65,21 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded"> } async setNote(inputNotePath: string | undefined, opts: SetNoteOpts = {}) { - console.log("Set note to ", inputNotePath); opts.triggerSwitchEvent = opts.triggerSwitchEvent !== undefined ? opts.triggerSwitchEvent : true; opts.viewScope = opts.viewScope || {}; opts.viewScope.viewMode = opts.viewScope.viewMode || "default"; if (!inputNotePath) { - console.log("EXIT A"); return; } const resolvedNotePath = await this.getResolvedNotePath(inputNotePath); if (!resolvedNotePath) { - console.log("EXIT B"); return; } if (this.notePath === resolvedNotePath && utils.areObjectsEqual(this.viewScope, opts.viewScope)) { - console.log("EXIT C"); return; } @@ -94,7 +90,6 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded"> this.notePath = resolvedNotePath; this.viewScope = opts.viewScope; ({ noteId: this.noteId, parentNoteId: this.parentNoteId } = treeService.getNoteIdAndParentIdFromUrl(resolvedNotePath)); - console.log("Note ID set to ", this.noteId); this.saveToRecentNotes(resolvedNotePath);