diff --git a/src/modules/service-detail/components/ServiceDetail.tsx b/src/modules/service-detail/components/ServiceDetail.tsx index e5e29647..010bac5b 100644 --- a/src/modules/service-detail/components/ServiceDetail.tsx +++ b/src/modules/service-detail/components/ServiceDetail.tsx @@ -26,7 +26,7 @@ const ServiceDetail = () => { serviceType: Service["serviceType"]; }>(); const navigate = useNavigate(); - const { data: service, isLoading, isFetching, refetch } = useGetService(serviceId!, serviceType!); + const { data: service, isLoading, refetch } = useGetService(serviceId!, serviceType!); const { data: interfaces } = useInterfaces(); @@ -39,8 +39,7 @@ const ServiceDetail = () => { navigate("/"); }; - if (isFetching || isLoading || !service || Object.keys(service ?? {}).length === 0) - return ; + if (isLoading || !service || Object.keys(service ?? {}).length === 0) return ; const status = getServiceStatus(service);