Remove possible `undefined` error

This commit is contained in:
Deluan 2020-11-27 18:53:25 -05:00
parent 2ffb28fc2d
commit 2010fcf4ca
1 changed files with 1 additions and 1 deletions

View File

@ -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