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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user