Fix potential undefined property
Not sure the reason, but I got this error:
```
Cannot read property 'id' of undefined
at tn (SongTitleField.js:35)
at Ka (react-dom.production.min.js:153)
at vl (react-dom.production.min.js:261)
at sc (react-dom.production.min.js:246)
at lc (react-dom.production.min.js:246)
```
This commit is contained in:
@@ -76,4 +76,9 @@ SongTitleField.propTypes = {
|
||||
showTrackNumbers: PropTypes.bool,
|
||||
}
|
||||
|
||||
SongTitleField.defaultProps = {
|
||||
record: {},
|
||||
showTrackNumbers: false,
|
||||
}
|
||||
|
||||
export default SongTitleField
|
||||
|
||||
Reference in New Issue
Block a user