filter out reference lists
This commit is contained in:
@@ -172,7 +172,7 @@ function WizardInner() {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
navigation.navigate('StarterPack', {id: res.uri})
|
navigation.replace('StarterPack', {id: res.uri})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// TODO add error to state
|
// TODO add error to state
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|||||||
@@ -26,7 +26,16 @@ export function useProfileListsQuery(did: string, opts?: {enabled?: boolean}) {
|
|||||||
limit: PAGE_SIZE,
|
limit: PAGE_SIZE,
|
||||||
cursor: pageParam,
|
cursor: pageParam,
|
||||||
})
|
})
|
||||||
|
|
||||||
return res.data
|
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,
|
initialPageParam: undefined,
|
||||||
getNextPageParam: lastPage => lastPage.cursor,
|
getNextPageParam: lastPage => lastPage.cursor,
|
||||||
|
|||||||
Reference in New Issue
Block a user