From 918cdb573ec9cf5a1c4e14fc614f13206169eb42 Mon Sep 17 00:00:00 2001 From: psiddharthdesign <107192927+psiddharthdesign@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:48:51 +0530 Subject: [PATCH] fix : remove teams select when no teams --- src/components/CreateProjectForm.tsx | 41 +++++++++++----------------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/src/components/CreateProjectForm.tsx b/src/components/CreateProjectForm.tsx index d7a07401..265ba4d0 100644 --- a/src/components/CreateProjectForm.tsx +++ b/src/components/CreateProjectForm.tsx @@ -227,18 +227,19 @@ export default function CreateProjectForm({ organizationId, repositories, teams )} - - - Select a Team - Choose the team for your project - - - {teams.length > 0 ? ( + {teams.length !== 0 && ( + + + Select a Team + Choose the team for your project + + + )} /> - ) : ( -
-
- -
- No Teams Found - - It looks like there are no teams available. - -
- )} -
-
+
+
+ )}