Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile/nav): no children flickering while navigating

Elian Doran449a9f1436fd
diff --git a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx
index 24a55939a2..648f56d687 100644
--- a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx
+++ b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx
@@ -208,7 +208,7 @@ export default function MobileNoteNavigator() {
)}
<div className="mobile-navigator-list">
- {!isLoaded ? null : children.length === 0 ? (
+ {!isLoaded || !parentNote ? null : children.length === 0 ? (
<NoItems icon="bx bx-folder-open" text={t("mobile_note_navigator.empty")} />
) : (
children.map((child) => (