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) => {