bbovenzi commented on code in PR #73910:
URL: https://github.com/apache/airflow/pull/73910#discussion_r4138221815
##########
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:
+1 to not accidentally showing empty parentheses.
--
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]