[Media UI] Always normalize the duration field to float.

This commit is contained in:
Fabio Manganiello 2024-08-25 00:20:02 +02:00
parent e8acf8615f
commit e672a7fb5c
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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() {