Explorar o código

Check with lowercase

Peter Holmberg %!s(int64=7) %!d(string=hai) anos
pai
achega
29bcdef104
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/features/datasources/state/actions.ts

+ 1 - 1
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
   );
 }