From 29bcdef1040fcec60a2afeb365b5c5f24a8af8c3 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Wed, 12 Dec 2018 08:47:08 +0100 Subject: [PATCH] Check with lowercase --- public/app/features/datasources/state/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/datasources/state/actions.ts b/public/app/features/datasources/state/actions.ts index bb8fce8424a..50296db9031 100644 --- a/public/app/features/datasources/state/actions.ts +++ b/public/app/features/datasources/state/actions.ts @@ -148,7 +148,7 @@ export function loadDataSourceTypes(): ThunkResult { export function nameExits(dataSources, name) { return ( dataSources.filter(dataSource => { - return dataSource.name === name; + return dataSource.name.toLowerCase() === name.toLowerCase(); }).length > 0 ); }