Skip to content

Commit 7e54f57

Browse files
committed
fix(FilterChips): only show group delete with multiple items
1 parent 59b60d2 commit 7e54f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/src/FilterChips/FilterChips.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const FilterChips: React.FunctionComponent<FilterChipsProps> = ({
5050
<ChipGroup
5151
key={`group_${group.category}`}
5252
categoryName={String(group.category) || ' '}
53-
{...(onDeleteGroup && {
53+
{...(group.chips.length > 1 && onDeleteGroup && {
5454
isClosable: true,
5555
onClick: (event) => {
5656
event.stopPropagation();

0 commit comments

Comments
 (0)