From bb32c3925dd3c0d20972a4094a41e2cc4204f8ad Mon Sep 17 00:00:00 2001 From: Kartik sharma Date: Tue, 8 Jul 2025 15:23:56 +0530 Subject: [PATCH] Assigned Task Should Be Visible to Normal User Without Showing Assign Button. --- src/components/Activities/InfraPlanning.jsx | 32 +++++++++++---------- 1 file changed, 17 insertions(+), 15 deletions(-) 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
No Result Found
; + } + + // Optionally show loading indicator + if (project_deatilsLoader) { + return
Loading...
; + } + return (
-
-
- {ManageInfra ? ( -
-
- {isLoading && (

Loading...

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

No Result Found

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

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

-
- )}
-
); };