Datasources list: Search now respects datasource type (#26456)

Closes #26399
This commit is contained in:
kay delaney 2020-07-20 15:49:20 +01:00 committed by GitHub
parent 9c3f47aa23
commit 6ccba48ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ export const getDataSources = (state: DataSourcesState) => {
const regex = new RegExp(state.searchQuery, 'i');
return state.dataSources.filter((dataSource: DataSourceSettings) => {
return regex.test(dataSource.name) || regex.test(dataSource.database);
return regex.test(dataSource.name) || regex.test(dataSource.database) || regex.test(dataSource.type);
});
};