diff --git a/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue b/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue index 87f8d57211..ef97580343 100644 --- a/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue +++ b/apps/web/src/services/alert-manager/v2/components/ServiceDetailHeader.vue @@ -78,11 +78,11 @@ const handleActionModal = (type: ModalType) => { }; const handleGoBackButton = () => { if (state.isSettingMode) { - const validUnhealthyPage = (!Number.isNaN(serviceListPageStore.unhealthyThisPage) && serviceListPageStore.unhealthyThisPage > 0) - ? serviceListPageStore.unhealthyThisPage + const validUnhealthyPage = (!Number.isNaN(serviceListPageStore.$state.unhealthyThisPage) && serviceListPageStore.unhealthyThisPage > 0) + ? serviceListPageStore.$state.unhealthyThisPage : 1; - const validHealthyPage = (!Number.isNaN(serviceListPageStore.healthyThisPage) && serviceListPageStore.healthyThisPage > 0) - ? serviceListPageStore.healthyThisPage + const validHealthyPage = (!Number.isNaN(serviceListPageStore.$state.healthyThisPage) && serviceListPageStore.$state.healthyThisPage > 0) + ? serviceListPageStore.$state.healthyThisPage : 1; router.push({ diff --git a/apps/web/src/services/alert-manager/v2/components/ServiceList.vue b/apps/web/src/services/alert-manager/v2/components/ServiceList.vue index 1c398eacf6..7a594a8aa9 100644 --- a/apps/web/src/services/alert-manager/v2/components/ServiceList.vue +++ b/apps/web/src/services/alert-manager/v2/components/ServiceList.vue @@ -1,10 +1,13 @@