Skip to content

Commit 0b1c7e8

Browse files
authored
Merge pull request #1137 from RedisInsight/fe/bugfix/RI-3300
#RI-3300 - fix search databases by display connection type
2 parents b69a0ed + 61b197b commit 0b1c7e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisinsight/ui/src/pages/home/components/SearchDatabasesList/SearchDatabasesList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { EuiFieldSearch } from '@elastic/eui'
33
import { useDispatch, useSelector } from 'react-redux'
44

55
import { instancesSelector, loadInstancesSuccess } from 'uiSrc/slices/instances/instances'
6-
import { Instance } from 'uiSrc/slices/interfaces'
6+
import { CONNECTION_TYPE_DISPLAY, Instance } from 'uiSrc/slices/interfaces'
77
import { lastConnectionFormat } from 'uiSrc/utils'
88
import { sendEventTelemetry, TelemetryEvent } from 'uiSrc/telemetry'
99
import styles from './styles.module.scss'
@@ -28,7 +28,7 @@ const SearchDatabasesList = () => {
2828
visible: item.name?.toLowerCase().indexOf(value) !== -1
2929
|| item.host?.toString()?.indexOf(value) !== -1
3030
|| item.port?.toString()?.indexOf(value) !== -1
31-
|| item.connectionType?.toLowerCase()?.indexOf(value) !== -1
31+
|| (item.connectionType && CONNECTION_TYPE_DISPLAY[item.connectionType]?.toLowerCase()?.indexOf(value) !== -1)
3232
|| item.modules?.map((m) => m.name?.toLowerCase()).join(',').indexOf(value) !== -1
3333
|| lastConnectionFormat(item.lastConnection)?.indexOf(value) !== -1
3434
})

0 commit comments

Comments
 (0)