Remove possible undefined error

This commit is contained in:
Deluan 2020-11-27 18:53:25 -05:00 committed by Joe Stump
parent c451bb3320
commit 8b11940dba
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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