diff --git a/src/components/Activities/InfraPlanning.jsx b/src/components/Activities/InfraPlanning.jsx index da0a9a33..db9e52b6 100644 --- a/src/components/Activities/InfraPlanning.jsx +++ b/src/components/Activities/InfraPlanning.jsx @@ -40,27 +40,29 @@ const InfraPlanning = () => },[reloadedData]) + // Show only "No Result Found" message if no data is present + if (!project_deatilsLoader && projects_Details?.buildings?.length === 0) { + return
Loading...
)} - {( !isLoading && projectInfra?.length === 0 ) && (No Result Found
)} - {(!isLoading && projectInfra?.length > 0) && (Access Denied: You don't have permission to perform this action. !
-