diff options
Diffstat (limited to 'apps/mobile')
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx index 7250d06b..c502c07f 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx @@ -68,6 +68,10 @@ const ListPickerPage = () => { }; const { allPaths } = data ?? {}; + // Filter out lists where user is a viewer (can't add/remove bookmarks) + const filteredPaths = allPaths?.filter( + (path) => path[path.length - 1].userRole !== "viewer", + ); return ( <CustomSafeAreaView> <FlatList @@ -97,7 +101,7 @@ const ListPickerPage = () => { </Pressable> </View> )} - data={allPaths} + data={filteredPaths} /> </CustomSafeAreaView> ); |
