Bug fixes batch (#18457)

Fixes https://github.com/twentyhq/twenty/issues/18181

Fixes https://github.com/twentyhq/twenty/issues/16842
Iterators remain running, which prevent the stopping state to eventually
become stopped

Fixes https://github.com/twentyhq/twenty/issues/18186
This commit is contained in:
Thomas Trompette
2026-03-06 14:20:54 +01:00
committed by GitHub
parent f65aafe96b
commit 1f1da901ea
4 changed files with 62 additions and 15 deletions
@@ -1,8 +1,10 @@
import { styled } from '@linaria/react';
import { type ReactNode } from 'react';
import { isNonEmptyString } from '@sniptt/guards';
import { OverflowingTextWithTooltip } from '@ui/display/tooltip/OverflowingTextWithTooltip';
import { themeCssVariables } from '@ui/theme-constants';
import { isDefined } from 'twenty-shared/utils';
export enum ChipSize {
Large = 'large',
@@ -197,7 +199,7 @@ export const Chip = ({
maxWidth={maxWidth}
>
{leftComponent}
{!isLabelHidden && label && label.trim() ? (
{!isLabelHidden && isDefined(label) && isNonEmptyString(label) ? (
<OverflowingTextWithTooltip size={size} text={label} />
) : !forceEmptyText && !isLabelHidden ? (
<StyledDiv>{emptyLabel}</StyledDiv>