Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

mobile: Fix the naming of the lists screen

MohamedBassem4586d3883b83
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 />
+ )}
</>
);
}