mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00: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:
1 parent
596a4897a3
commit
8549451ee7
2 files changed
+9
-2
No files matched your search
@@ -76,4 +76,9 @@ SongTitleField.propTypes = {
|
||||
showTrackNumbers: PropTypes.bool,
|
||||
}
|
||||
|
||||
SongTitleField.defaultProps = {
|
||||
record: {},
|
||||
showTrackNumbers: false,
|
||||
}
|
||||
|
||||
export default SongTitleField
|
||||
Reference in new issue
Block a user