mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Check with lowercase
This commit is contained in:
@@ -148,7 +148,7 @@ export function loadDataSourceTypes(): ThunkResult<void> {
|
|||||||
export function nameExits(dataSources, name) {
|
export function nameExits(dataSources, name) {
|
||||||
return (
|
return (
|
||||||
dataSources.filter(dataSource => {
|
dataSources.filter(dataSource => {
|
||||||
return dataSource.name === name;
|
return dataSource.name.toLowerCase() === name.toLowerCase();
|
||||||
}).length > 0
|
}).length > 0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user