Remove possible undefined error
This commit is contained in:
@@ -82,7 +82,7 @@ export const SongDatagridRow = ({
|
|||||||
const fields = React.Children.toArray(children).filter((c) =>
|
const fields = React.Children.toArray(children).filter((c) =>
|
||||||
isValidElement(c)
|
isValidElement(c)
|
||||||
)
|
)
|
||||||
if (!record.title) {
|
if (!record || !record.title) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const childCount = fields.length
|
const childCount = fields.length
|
||||||
|
|||||||
Reference in New Issue
Block a user