Remove possible undefined error
This commit is contained in:
parent
2ffb28fc2d
commit
2010fcf4ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue