Skip to content

Commit 04b2d67

Browse files
author
Roman.Sergeenko
committed
[pull/56] - fix pr comments
1 parent 6059224 commit 04b2d67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redisinsight/ui/src/components/cli/components/cli-search/CliSearchFilter/CliSearchFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const CliSearchFilter = ({ submitFilter, isLoading }: Props) => {
3939
}, [matchedCommand])
4040

4141
const groupOptions = [...commandGroups].sort().map((group: string) => ({
42-
text: (GROUP_TYPES_DISPLAY as any)[group] || group.replace(/_/, ' '),
42+
text: (GROUP_TYPES_DISPLAY as any)[group] || group.replace(/_/g, ' '),
4343
value: group
4444
}))
4545

redisinsight/ui/src/components/group-badge/GroupBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const GroupBadge = ({ type, name = '', className = '' }: Props) => (
1515
data-testid={`badge-${type} ${name}`}
1616
>
1717
<EuiText style={{ color: 'var(--euiTextSubduedColorHover)' }} className="text-uppercase" size="xs">
18-
{(GROUP_TYPES_DISPLAY as any)[type] ?? type.replace(/_/, ' ')}
18+
{(GROUP_TYPES_DISPLAY as any)[type] ?? type.replace(/_/g, ' ')}
1919
</EuiText>
2020
</EuiBadge>
2121
)

0 commit comments

Comments
 (0)