mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-19 21:37:40 +03:00
Remove possible undefined
error
This commit is contained in:
parent
2ffb28fc2d
commit
2010fcf4ca
@ -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