diff --git a/src/components/Activities/InfraPlanning.jsx b/src/components/Activities/InfraPlanning.jsx index 5dce91c4..e7a4003a 100644 --- a/src/components/Activities/InfraPlanning.jsx +++ b/src/components/Activities/InfraPlanning.jsx @@ -33,7 +33,7 @@ const InfraPlanning = () => { const selectedService = useCurrentService(); const { projectInfra, isLoading, isError, error, isFetched } = - useProjectInfra(selectedProject, selectedService || "" ); + useProjectInfra(selectedProject, selectedService || ""); const canManageInfra = useHasUserPermission(MANAGE_PROJECT_INFRA); const canApproveTask = useHasUserPermission(APPROVE_TASK); @@ -62,9 +62,13 @@ const InfraPlanning = () => { if (isFetched && (!projectInfra || projectInfra.length === 0)) { return ( -
No Result Found
+No Result Found
- {selectedProject ? " No images match the selected filters.":"Please Select Project!"} -
- ); - } + if (!data?.data?.length && !isLoading) { + return ( +Service not assigned