From 1ef82ad0b261de5ee32a44bca7577f77d5b8cd1b Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 19 Sep 2025 19:20:01 +0530 Subject: [PATCH] Only 1 project or no project is assigned then dropdown will be hide. --- src/components/Project/ProjectInfra.jsx | 53 +++++++++++++++++-------- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/src/components/Project/ProjectInfra.jsx b/src/components/Project/ProjectInfra.jsx index 38821a6a..86195381 100644 --- a/src/components/Project/ProjectInfra.jsx +++ b/src/components/Project/ProjectInfra.jsx @@ -89,24 +89,43 @@ const ProjectInfra = ({ data, onDataChange, eachSiteEngineer }) => { className="dataTables_length text-start py-2 px-6 col-md-4 col-12" id="DataTables_Table_0_length" > - + ) : ( +
- - {servicesLoading && } - {assignedServices?.map((service) => ( - - ))} - - + {assignedServices?.length === 1 + ? assignedServices[0].name + : "No service available"} +
+ )} {/* Buttons Section (aligned to right) */}