ramitkataria commented on code in PR #73910:
URL: https://github.com/apache/airflow/pull/73910#discussion_r4137493752


##########
airflow-core/src/airflow/ui/src/pages/Pools/PoolBarCard.tsx:
##########
@@ -43,7 +44,13 @@ const PoolBarCard = ({ pool }: PoolBarCardProps) => {
           <HStack justifyContent="space-between" width="100%">
             <Text fontSize="lg" fontWeight="bold" whiteSpace="normal" 
wordBreak="break-word">
               {pool.name} ({pool.slots === UNLIMITED_SLOTS ? "∞" : pool.slots} 
{translate("pools.form.slots")}
-              ){pool.team_name !== null && ` (${pool.team_name})`}
+              )
+              {pool.team_name === null ? undefined : (

Review Comment:
   Maybe we should use `useShowTeam(pool.team_name)` to gate instead so that a 
pool that still has a team_name after multi_team is turned off wouldn't render 
`default_pool (128 Slots) ()`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to