Jelajahi Sumber

Check with lowercase

Peter Holmberg 7 tahun lalu
induk
melakukan
29bcdef104
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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
   );
 }