Skip to content

Commit 723c89e

Browse files
#RI-4608 - remove deprecated command groups
1 parent b830c6c commit 723c89e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisinsight/ui/src/components/command-helper/CommandHelperWrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { EuiBadge, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'
2-
import React, { ReactElement, useEffect } from 'react'
2+
import React, { ReactElement, useEffect, useMemo } from 'react'
33
import { useSelector } from 'react-redux'
44
import { useParams } from 'react-router-dom'
55

@@ -37,7 +37,7 @@ const CommandHelperWrapper = () => {
3737
const lastMatchedCommand = (isEnteringCommand && matchedCommand && !checkDeprecatedModuleCommand(matchedCommand))
3838
? matchedCommand
3939
: searchedCommand
40-
const KEYS_OF_COMMANDS = removeDeprecatedModuleCommands(commandsArray)
40+
const KEYS_OF_COMMANDS = useMemo(() => removeDeprecatedModuleCommands(commandsArray), [commandsArray])
4141
let searchedCommands: string[] = []
4242

4343
useEffect(() => {

0 commit comments

Comments
 (0)