From 0ccd00d3f703f175ff500bbadb8fde7c52c15270 Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Mon, 14 Jul 2025 14:30:49 +0530 Subject: [PATCH] error fixed during occured rebase --- src/components/Activities/InfraPlanning.jsx | 46 +++++---------------- 1 file changed, 11 insertions(+), 35 deletions(-) diff --git a/src/components/Activities/InfraPlanning.jsx b/src/components/Activities/InfraPlanning.jsx index a0ee3ac3..da0a9a33 100644 --- a/src/components/Activities/InfraPlanning.jsx +++ b/src/components/Activities/InfraPlanning.jsx @@ -40,48 +40,24 @@ const InfraPlanning = () => },[reloadedData]) - // Show only "No Result Found" message if no data is present - if (!project_deatilsLoader && projects_Details?.buildings?.length === 0) { - return
No Result Found
; - } - - // Optionally show loading indicator - if (project_deatilsLoader) { - return
Loading...
; - } - return (
-
- {/*
-
- -
- -
*/} + {ManageInfra ? ( +
- {project_deatilsLoader && (

Loading...

)} - {( !project_deatilsLoader && projects_Details?.buildings.length === 0 ) && (

No Result Found

)} - - - - {(!project_deatilsLoader && projects_Details?.buildings?.length > 0) && ()} + {isLoading && (

Loading...

)} + {( !isLoading && projectInfra?.length === 0 ) && (

No Result Found

)} + {(!isLoading && projectInfra?.length > 0) && ()}
+ ) : ( +
+ +

Access Denied: You don't have permission to perform this action. !

+
+ )}