Check with lowercase

pull/14457/head
Peter Holmberg 7 years ago
parent ed2a9b8e73
commit 29bcdef104
  1. 2
      public/app/features/datasources/state/actions.ts

@ -148,7 +148,7 @@ export function loadDataSourceTypes(): ThunkResult<void> {
export function nameExits(dataSources, name) {
return (
dataSources.filter(dataSource => {
return dataSource.name === name;
return dataSource.name.toLowerCase() === name.toLowerCase();
}).length > 0
);
}

Loading…
Cancel
Save