mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 23:04:21 +00:00
🐛 Prevent mysterious bug on group deletion
This commit is contained in:
parent
9b91068281
commit
56a75f5ec8
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ export function GroupListBox({viewSet}: GroupListBoxProps): JSX.Element {
|
||||||
if(viewSet.resources.length === 0) {
|
if(viewSet.resources.length === 0) {
|
||||||
return <Empty>This Sophon instance has no groups.</Empty>
|
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],
|
[viewSet],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue