diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-15 00:26:10 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-15 00:26:10 +0000 |
| commit | 4586d3883b83f8c28551c8372c4b8ad1470ebc47 (patch) | |
| tree | b849d739d3705e34021dcdd5d6c9ec7a2117e796 /apps | |
| parent | 5953ef044e211085dbc6e3f779200bda4d9ae8bd (diff) | |
| download | karakeep-4586d3883b83f8c28551c8372c4b8ad1470ebc47.tar.zst | |
mobile: Fix the naming of the lists screen
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/mobile/app/dashboard/lists/[slug].tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/mobile/app/dashboard/lists/[slug].tsx b/apps/mobile/app/dashboard/lists/[slug].tsx index fdd67763..f85aeeaf 100644 --- a/apps/mobile/app/dashboard/lists/[slug].tsx +++ b/apps/mobile/app/dashboard/lists/[slug].tsx @@ -11,20 +11,20 @@ export default function ListView() { } const { data: list } = api.lists.get.useQuery({ listId: slug }); - if (!list) { - return <FullPageSpinner />; - } - return ( <> <Stack.Screen options={{ - headerTitle: `${list.icon} ${list.name}`, + headerTitle: list ? `${list.icon} ${list.name}` : "Loading ...", }} /> - <View> - <BookmarkList archived={false} ids={list.bookmarks} /> - </View> + {list ? ( + <View> + <BookmarkList archived={false} ids={list.bookmarks} /> + </View> + ) : ( + <FullPageSpinner /> + )} </> ); } |
