set dayStart when is empty

This commit is contained in:
jb-alvarado 2020-09-20 21:06:50 +02:00
parent b1366d244c
commit 7f4bd7f07b

View File

@ -1,5 +1,8 @@
export default ({ app }, inject) => {
inject('processPlaylist', (dayStart, list) => {
if (!dayStart) {
dayStart = '00:00:00'
}
const [h, m, s] = dayStart.split(':')
let begin = parseFloat(h) * 3600 + parseFloat(m) * 60 + parseFloat(s)