@@ -19,7 +19,7 @@ import { DATE_FORMAT } from 'uiSrc/pages/slowLog/components/SlowLogTable/SlowLog
19
19
import { convertNumberByUnits } from 'uiSrc/pages/slowLog/utils'
20
20
import { appAnalyticsInfoSelector } from 'uiSrc/slices/app/info'
21
21
import { connectedInstanceSelector } from 'uiSrc/slices/instances/instances'
22
- import { ConnectionProvider , ConnectionType } from 'uiSrc/slices/interfaces'
22
+ import { ConnectionType } from 'uiSrc/slices/interfaces'
23
23
import {
24
24
clearSlowLogAction ,
25
25
fetchSlowLogsAction ,
@@ -47,7 +47,7 @@ const countOptions: EuiSuperSelectOption<string>[] = [
47
47
]
48
48
49
49
const SlowLogPage = ( ) => {
50
- const { connectionType, provider , name : connectedInstanceName } = useSelector ( connectedInstanceSelector )
50
+ const { connectionType, name : connectedInstanceName } = useSelector ( connectedInstanceSelector )
51
51
const { data, loading, durationUnit, config } = useSelector ( slowLogSelector )
52
52
const { slowlogLogSlowerThan = 0 , slowlogMaxLen } = useSelector ( slowLogConfigSelector )
53
53
const { identified : analyticsIdentified } = useSelector ( appAnalyticsInfoSelector )
@@ -83,7 +83,7 @@ const SlowLogPage = () => {
83
83
}
84
84
85
85
const getSlowLogs = ( maxLen ?: number ) => {
86
- const countToSend = ( provider === ConnectionProvider . RE_CLOUD && count === MAX_COUNT_VALUE )
86
+ const countToSend = count === MAX_COUNT_VALUE
87
87
? ( maxLen || slowlogMaxLen || DEFAULT_SLOWLOG_MAX_LEN )
88
88
: toNumber ( count )
89
89
0 commit comments