diff --git a/redisinsight/api/src/constants/commands/redistimeseries.json b/redisinsight/api/src/constants/commands/redistimeseries.json index cfe37dc8ae..d5c85080e5 100644 --- a/redisinsight/api/src/constants/commands/redistimeseries.json +++ b/redisinsight/api/src/constants/commands/redistimeseries.json @@ -122,6 +122,8 @@ "multiple": true, "optional": true } - ] + ], + "since": "1.0.0", + "group": "timeseries" } } diff --git a/redisinsight/ui/src/slices/app/redis-commands.ts b/redisinsight/ui/src/slices/app/redis-commands.ts index 7a8731a358..401923be83 100644 --- a/redisinsight/ui/src/slices/app/redis-commands.ts +++ b/redisinsight/ui/src/slices/app/redis-commands.ts @@ -1,5 +1,5 @@ import { createSlice } from '@reduxjs/toolkit' -import { uniqBy } from 'lodash' +import { isString, uniqBy } from 'lodash' import { apiService } from 'uiSrc/services' import { ApiEndpoints, ICommand, ICommands } from 'uiSrc/constants' import { getApiErrorMessage, isStatusSuccessful } from 'uiSrc/utils' @@ -30,6 +30,7 @@ const appRedisCommandsSlice = createSlice({ state.commandsArray = Object.keys(state.spec).sort() state.commandGroups = uniqBy(Object.values(payload), 'group') .map((item: ICommand) => item.group) + .filter((group: string) => isString(group)) }, getRedisCommandsFailure: (state, { payload }) => { state.loading = false