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