We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5d267 commit c186fbaCopy full SHA for c186fba
redisinsight/ui/src/slices/app/redis-commands.ts
@@ -1,5 +1,5 @@
1
import { createSlice } from '@reduxjs/toolkit'
2
-import { uniqBy } from 'lodash'
+import { isString, uniqBy } from 'lodash'
3
import { apiService } from 'uiSrc/services'
4
import { ApiEndpoints, ICommand, ICommands } from 'uiSrc/constants'
5
import { getApiErrorMessage, isStatusSuccessful } from 'uiSrc/utils'
@@ -30,6 +30,7 @@ const appRedisCommandsSlice = createSlice({
30
state.commandsArray = Object.keys(state.spec).sort()
31
state.commandGroups = uniqBy(Object.values(payload), 'group')
32
.map((item: ICommand) => item.group)
33
+ .filter((group: string) => isString(group))
34
},
35
getRedisCommandsFailure: (state, { payload }) => {
36
state.loading = false
0 commit comments