fix(front): state not null error in channel detail page

This commit is contained in:
ArneBo 2025-04-09 13:58:39 +02:00
parent 44cf5b05ab
commit 8fefe767aa
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ const fetchData = async () => {
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]) => {
if (object?.uuid && object.uuid === lastObject?.uuid) return