This commit is contained in:
Hailey
2024-06-12 12:09:52 -07:00
parent a836e81dc7
commit 756ecf9af0
2 changed files with 1 additions and 3 deletions
@@ -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),
+1 -1
View File
@@ -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,
})