瀏覽代碼

Check with lowercase

Peter Holmberg 7 年之前
父節點
當前提交
29bcdef104
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
   );
 }