fix browser errors, when engine is not running.

This commit is contained in:
jb-alvarado 2022-09-13 12:50:18 +02:00
parent cf93cd5c6a
commit 51719eb9c0

View File

@ -92,7 +92,7 @@ export const actions = {
const response = await this.$axios.get(`api/control/${channel}/media/current`)
if (response.data) {
if (response.data && response.data.result && response.data.result.played_sec) {
const obj = response.data.result
const progValue = obj.played_sec * 100 / obj.current_media.out
commit('SET_PROGRESS_VALUE', progValue)