Skip to content

Build your personal knowledge base with Trilium Notes

chore(mobile): add possible work-around for note switcher sometimes disappearing

Elian Doran29ce004974cb
diff --git a/apps/client/src/widgets/layout/NoteTitleActions.tsx b/apps/client/src/widgets/layout/NoteTitleActions.tsx
index 7c4e68698a..c11b690b51 100644
--- a/apps/client/src/widgets/layout/NoteTitleActions.tsx
+++ b/apps/client/src/widgets/layout/NoteTitleActions.tsx
@@ -23,7 +23,7 @@ export default function NoteTitleActions() {
<PromotedAttributes note={note} componentId={componentId} noteContext={noteContext} />
{noteType === "search" && <SearchProperties note={note} ntxId={ntxId} />}
<EditedNotes />
- {viewScope?.viewMode === "default" && <NoteTypeSwitcher />}
+ {!viewScope?.viewMode || viewScope.viewMode === "default" && <NoteTypeSwitcher />}
</div>
);
}