Fix DurationField breaking when the record does not have the source field
This commit is contained in:
parent
5682d0e721
commit
b1f5d35f73
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ const DurationField = ({ record = {}, source }) => {
|
||||||
try {
|
try {
|
||||||
return <span>{format(record[source])}</span>
|
return <span>{format(record[source])}</span>
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('Error in DurationField !!! record=', record)
|
console.log('Error in DurationField! Record:', record)
|
||||||
throw e
|
return <span>00:00</span>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue