fix(front): state not null error in channel detail page
This commit is contained in:
parent
44cf5b05ab
commit
8fefe767aa
|
@ -106,7 +106,7 @@ const fetchData = async () => {
|
||||||
|
|
||||||
watch(() => props.id, fetchData, { immediate: true })
|
watch(() => props.id, fetchData, { immediate: true })
|
||||||
|
|
||||||
const uuid = computed(() => store.state.channels.latestPublication?.channel.uuid)
|
const uuid = computed(() => store.state?.channels.latestPublication?.channel.uuid)
|
||||||
|
|
||||||
watch([uuid, object], ([uuid, object], [lastUuid, lastObject]) => {
|
watch([uuid, object], ([uuid, object], [lastUuid, lastObject]) => {
|
||||||
if (object?.uuid && object.uuid === lastObject?.uuid) return
|
if (object?.uuid && object.uuid === lastObject?.uuid) return
|
||||||
|
|
Loading…
Reference in New Issue