mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-14 21:37:09 +02:00
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:
parent
596a4897a3
commit
8549451ee7
2 changed files with 9 additions and 2 deletions
|
|
@ -76,4 +76,9 @@ SongTitleField.propTypes = {
|
|||
showTrackNumbers: PropTypes.bool,
|
||||
}
|
||||
|
||||
SongTitleField.defaultProps = {
|
||||
record: {},
|
||||
showTrackNumbers: false,
|
||||
}
|
||||
|
||||
export default SongTitleField
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue