fix profiles query
This commit is contained in:
@@ -113,7 +113,7 @@ export function Provider({
|
|||||||
const createInitialState = (): State => {
|
const createInitialState = (): State => {
|
||||||
if (starterPack && AppBskyGraphStarterpack.isRecord(starterPack.record)) {
|
if (starterPack && AppBskyGraphStarterpack.isRecord(starterPack.record)) {
|
||||||
return {
|
return {
|
||||||
canNext: false,
|
canNext: true,
|
||||||
currentStep: 'Details',
|
currentStep: 'Details',
|
||||||
name: starterPack.record.name,
|
name: starterPack.record.name,
|
||||||
description: starterPack.record.description,
|
description: starterPack.record.description,
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export function Wizard({
|
|||||||
const {data} = useListMembersQuery(listUri)
|
const {data} = useListMembersQuery(listUri)
|
||||||
const profiles = data?.pages.flatMap(p => p.items.map(i => i.subject))
|
const profiles = data?.pages.flatMap(p => p.items.map(i => i.subject))
|
||||||
|
|
||||||
if (name && rkey && !starterPack && (!listUri || (listUri && !profiles))) {
|
if (name && rkey && (!starterPack || (starterPack && listUri && !profiles))) {
|
||||||
return (
|
return (
|
||||||
<ListMaybePlaceholder
|
<ListMaybePlaceholder
|
||||||
isLoading={isLoadingDid || isLoadingStarterPack}
|
isLoading={isLoadingDid || isLoadingStarterPack}
|
||||||
|
|||||||
Reference in New Issue
Block a user