Skip to content

Commit 8da19da

Browse files
authored
Merge pull request #703 from RedisInsight/bugfix/RI-2964
#RI-2964 - send max count as max len for all dbs
2 parents cb978c8 + e42d8d7 commit 8da19da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redisinsight/ui/src/pages/slowLog/SlowLogPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { DATE_FORMAT } from 'uiSrc/pages/slowLog/components/SlowLogTable/SlowLog
1919
import { convertNumberByUnits } from 'uiSrc/pages/slowLog/utils'
2020
import { appAnalyticsInfoSelector } from 'uiSrc/slices/app/info'
2121
import { connectedInstanceSelector } from 'uiSrc/slices/instances/instances'
22-
import { ConnectionProvider, ConnectionType } from 'uiSrc/slices/interfaces'
22+
import { ConnectionType } from 'uiSrc/slices/interfaces'
2323
import {
2424
clearSlowLogAction,
2525
fetchSlowLogsAction,
@@ -47,7 +47,7 @@ const countOptions: EuiSuperSelectOption<string>[] = [
4747
]
4848

4949
const SlowLogPage = () => {
50-
const { connectionType, provider, name: connectedInstanceName } = useSelector(connectedInstanceSelector)
50+
const { connectionType, name: connectedInstanceName } = useSelector(connectedInstanceSelector)
5151
const { data, loading, durationUnit, config } = useSelector(slowLogSelector)
5252
const { slowlogLogSlowerThan = 0, slowlogMaxLen } = useSelector(slowLogConfigSelector)
5353
const { identified: analyticsIdentified } = useSelector(appAnalyticsInfoSelector)
@@ -83,7 +83,7 @@ const SlowLogPage = () => {
8383
}
8484

8585
const getSlowLogs = (maxLen?: number) => {
86-
const countToSend = (provider === ConnectionProvider.RE_CLOUD && count === MAX_COUNT_VALUE)
86+
const countToSend = count === MAX_COUNT_VALUE
8787
? (maxLen || slowlogMaxLen || DEFAULT_SLOWLOG_MAX_LEN)
8888
: toNumber(count)
8989

0 commit comments

Comments
 (0)