fix top cowboys
This commit is contained in:
parent
1b1463d2d9
commit
a3b668587d
|
@ -44,7 +44,7 @@ export default function UserList ({ ssrData, query, variables, destructureData }
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// shift the stat we are sorting by to the front
|
// shift the stat we are sorting by to the front
|
||||||
const comps = [...STAT_COMPONENTS]
|
const comps = [...STAT_COMPONENTS]
|
||||||
setStatComps(seperate([...comps.splice(STAT_POS[variables.by || 0], 1), ...comps], Seperator))
|
setStatComps(seperate([...comps.splice(STAT_POS[variables?.by || 0], 1), ...comps], Seperator))
|
||||||
}, [variables?.by])
|
}, [variables?.by])
|
||||||
|
|
||||||
const { users, cursor } = useMemo(() => {
|
const { users, cursor } = useMemo(() => {
|
||||||
|
|
Loading…
Reference in New Issue