mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
sidebarlistheader: fixing potential undefined ref
This commit is contained in:
parent
c13ec5a698
commit
ed3b19cd0f
@ -45,7 +45,7 @@ export function SidebarListHeader(props: {
|
||||
|
||||
const metadata = associations?.groups?.[groupPath]?.metadata;
|
||||
const memberMetadata =
|
||||
groupPath ? metadata.vip === 'member-metadata' : false;
|
||||
groupPath && metadata ? metadata.vip === 'member-metadata' : false;
|
||||
|
||||
const isAdmin = memberMetadata || (role === 'admin') || (props.workspace?.type === 'home') || (props.workspace?.type === 'messages');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user