Use most up-to-date user on groups page
This commit is contained in:
parent
861fb7abbd
commit
272658e5dc
|
@ -45,8 +45,8 @@ export default function Groups(props: {
|
||||||
const [creatorsDict, setCreatorsDict] = useState(props.creatorsDict)
|
const [creatorsDict, setCreatorsDict] = useState(props.creatorsDict)
|
||||||
const serverUser = props.auth?.user
|
const serverUser = props.auth?.user
|
||||||
const groups = useGroups() ?? props.groups
|
const groups = useGroups() ?? props.groups
|
||||||
const memberGroupIds = useMemberGroupIds(serverUser) || []
|
|
||||||
const user = useUser() ?? serverUser
|
const user = useUser() ?? serverUser
|
||||||
|
const memberGroupIds = useMemberGroupIds(user) || []
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Load User object for creator of new Groups.
|
// Load User object for creator of new Groups.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user