mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
Remove possible undefined error
This commit is contained in:
parent
c451bb3320
commit
8b11940dba
@ -82,7 +82,7 @@ export const SongDatagridRow = ({
|
||||
const fields = React.Children.toArray(children).filter((c) =>
|
||||
isValidElement(c)
|
||||
)
|
||||
if (!record.title) {
|
||||
if (!record || !record.title) {
|
||||
return null
|
||||
}
|
||||
const childCount = fields.length
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user