From b230da2a43d849a7c6d8d65771c201975024948b Mon Sep 17 00:00:00 2001 From: alma Date: Fri, 16 Jan 2026 14:08:45 +0100 Subject: [PATCH] Pages corrections pages missions --- components/carnet/navigation.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/carnet/navigation.tsx b/components/carnet/navigation.tsx index f6c3315..437e1a0 100644 --- a/components/carnet/navigation.tsx +++ b/components/carnet/navigation.tsx @@ -76,12 +76,13 @@ export default function Navigation({ nextcloudFolders, onFolderSelect }: Navigat }; // Make sure we always have the standard folders available - const defaultFolders = ['Notes', 'Diary', 'Health', 'Contacts', 'Missions']; + const defaultFolders = ['Notes', 'Diary', 'Health', 'Contacts']; // Combine API-provided folders with defaults to ensure we always have folders to show + // Missions is always included as it's in a different bucket (missions, not pages) const allFolders = nextcloudFolders && nextcloudFolders.length > 0 - ? [...new Set([...nextcloudFolders])] // Remove duplicates - : defaultFolders; + ? [...new Set([...nextcloudFolders, 'Missions'])] // Always add Missions (from missions bucket) + : [...defaultFolders, 'Missions']; // Include Missions in defaults too // Sort folders according to the specified order const sortedFolders = allFolders.sort((a, b) => {