forked from platypush/platypush
[Media UI] Always normalize the duration
field to float.
This commit is contained in:
parent
e8acf8615f
commit
e672a7fb5c
1 changed files with 5 additions and 1 deletions
|
@ -199,7 +199,11 @@ export default {
|
|||
|
||||
computed: {
|
||||
duration() {
|
||||
return this.status?.duration != null ? this.status.duration : this.track?.duration
|
||||
const duration = this.status?.duration != null ? this.status.duration : this.track?.duration
|
||||
if (duration != null)
|
||||
return parseFloat(duration)
|
||||
|
||||
return null
|
||||
},
|
||||
|
||||
trackImage() {
|
||||
|
|
Loading…
Reference in a new issue