1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🐛 Prevent mysterious bug on group deletion

This commit is contained in:
Steffo 2021-10-13 04:29:24 +02:00
parent 9b91068281
commit 56a75f5ec8
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -21,7 +21,7 @@ export function GroupListBox({viewSet}: GroupListBoxProps): JSX.Element {
if(viewSet.resources.length === 0) {
return <Empty>This Sophon instance has no groups.</Empty>
}
return viewSet.resources?.map(res => <GroupResourcePanel resource={res} key={res.value.slug}/>)
return viewSet.resources?.map(res => <GroupResourcePanel resource={res} key={res.value?.slug}/>)
},
[viewSet],
)