nits
This commit is contained in:
@@ -40,9 +40,7 @@ export const ProfilesList = React.forwardRef<SectionRef, ProfilesListProps>(
|
||||
|
||||
const getSortedProfiles = () => {
|
||||
if (!profiles) return
|
||||
|
||||
const myIndex = profiles.findIndex(p => p.did === currentAccount?.did)
|
||||
|
||||
return [
|
||||
profiles[myIndex],
|
||||
...profiles.slice(0, myIndex),
|
||||
|
||||
@@ -28,7 +28,7 @@ export function useListMembersQuery(uri?: string, limit: number = PAGE_SIZE) {
|
||||
queryKey: RQKEY(uri ?? ''),
|
||||
async queryFn({pageParam}: {pageParam: RQPageParam}) {
|
||||
const res = await agent.app.bsky.graph.getList({
|
||||
list: uri!,
|
||||
list: uri!, // the enabled flag will prevent this from running until uri is set
|
||||
limit,
|
||||
cursor: pageParam,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user