From 2e51c48db33519ed8b94e42b5955672539345e48 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 6 Jun 2024 21:04:39 -0700 Subject: [PATCH] filter out reference lists --- src/screens/StarterPack/Wizard/index.tsx | 2 +- src/state/queries/profile-lists.ts | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index ce16333266..6a5bcfaf99 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -172,7 +172,7 @@ function WizardInner() { }, ) - navigation.navigate('StarterPack', {id: res.uri}) + navigation.replace('StarterPack', {id: res.uri}) } catch (e) { // TODO add error to state console.error(e) diff --git a/src/state/queries/profile-lists.ts b/src/state/queries/profile-lists.ts index 2bb5f4d28b..a03341db1f 100644 --- a/src/state/queries/profile-lists.ts +++ b/src/state/queries/profile-lists.ts @@ -26,7 +26,16 @@ export function useProfileListsQuery(did: string, opts?: {enabled?: boolean}) { limit: PAGE_SIZE, cursor: pageParam, }) + return res.data + + // TODO filter out reference lists + // return { + // ...res.data, + // lists: res.data.lists.filter( + // l => l.purpose !== 'app.bsky.graph.defs#referencelist', + // ), + // } }, initialPageParam: undefined, getNextPageParam: lastPage => lastPage.cursor,