Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(mobile): toggling sidebar closes active note
Elian Doran24a9487c6f00
diff --git a/src/public/app/components/mobile_screen_switcher.ts b/src/public/app/components/mobile_screen_switcher.tsindex 0a779f3725..02780354c4 100644--- a/src/public/app/components/mobile_screen_switcher.ts+++ b/src/public/app/components/mobile_screen_switcher.ts@@ -11,13 +11,6 @@ export default class MobileScreenSwitcherExecutor extends ComponentsetActiveScreenCommand({screen}: CommandListenerData<"setActiveScreen">) {if (screen !== this.activeScreen) {this.activeScreen = screen;-- if (screen === 'tree') {- const activeNoteContext = appContext.tabManager.getActiveContext();-- activeNoteContext.setEmpty();- }-this.triggerEvent('activeScreenChanged', {activeScreen: screen});}}