Fixed data loading timing issue
This commit is contained in:
@@ -45,6 +45,9 @@ const isLoading = computed(() => calendarStatus.value === "pending" || categorie
|
||||
const { t } = useI18n()
|
||||
const { setCurrentMenu } = useUiStore()
|
||||
|
||||
// Set menu once we have the calendar data
|
||||
watch(calendar, (n) => {
|
||||
if (n?.data) {
|
||||
setCurrentMenu([
|
||||
{
|
||||
tooltip: t("entity.world.backToMy"),
|
||||
@@ -58,6 +61,8 @@ setCurrentMenu([
|
||||
phIcon: "world"
|
||||
},
|
||||
])
|
||||
}
|
||||
}, { immediate: true })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user