mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-17 20:42:25 +03:00
Fix DurationField breaking when the record does not have the source field
This commit is contained in:
parent
5682d0e721
commit
b1f5d35f73
@ -5,8 +5,8 @@ const DurationField = ({ record = {}, source }) => {
|
||||
try {
|
||||
return <span>{format(record[source])}</span>
|
||||
} catch (e) {
|
||||
console.log('Error in DurationField !!! record=', record)
|
||||
throw e
|
||||
console.log('Error in DurationField! Record:', record)
|
||||
return <span>00:00</span>
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user