fix day_start when value is 00:00:00

This commit is contained in:
jb-alvarado 2021-02-02 09:15:44 +01:00
parent c288455454
commit 439e84267e

View File

@ -77,7 +77,7 @@ export const actions = {
let begin let begin
let lastTime = this.$timeToSeconds(this.$dayjs().format('HH:mm:ss')) let lastTime = this.$timeToSeconds(this.$dayjs().format('HH:mm:ss'))
if (rootState.config.startInSec) { if (Number.isFinite(rootState.config.startInSec)) {
begin = rootState.config.startInSec begin = rootState.config.startInSec
} else { } else {
commit('SET_CURRENT_CLIP', 'day_start is not set, cannot calculate current clip') commit('SET_CURRENT_CLIP', 'day_start is not set, cannot calculate current clip')