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

🐛 Prevent mysterious bug on group deletion

This commit is contained in:
Steffo 2021-10-13 04:29:24 +02:00
parent 6ec92ac07b
commit 222104e051

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],
)