From ff0a7905166e29ecf9404fa90d23af7863885384 Mon Sep 17 00:00:00 2001
From: George Goldberg <george@gberg.me>
Date: Thu, 27 Jul 2017 08:48:02 +0100
Subject: PLT-7040: Fix capitalisation of Elasticsearch in Config. (#7020)

---
 .../admin_console/elasticsearch_settings.jsx       | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

(limited to 'webapp/components/admin_console/elasticsearch_settings.jsx')

diff --git a/webapp/components/admin_console/elasticsearch_settings.jsx b/webapp/components/admin_console/elasticsearch_settings.jsx
index 23ba14b25..43a0baf37 100644
--- a/webapp/components/admin_console/elasticsearch_settings.jsx
+++ b/webapp/components/admin_console/elasticsearch_settings.jsx
@@ -26,24 +26,24 @@ export default class ElasticsearchSettings extends AdminSettings {
     }
 
     getConfigFromState(config) {
-        config.ElasticSearchSettings.ConnectionUrl = this.state.connectionUrl;
-        config.ElasticSearchSettings.Username = this.state.username;
-        config.ElasticSearchSettings.Password = this.state.password;
-        config.ElasticSearchSettings.Sniff = this.state.sniff;
-        config.ElasticSearchSettings.EnableIndexing = this.state.enableIndexing;
-        config.ElasticSearchSettings.EnableSearching = this.state.enableSearching;
+        config.ElasticsearchSettings.ConnectionUrl = this.state.connectionUrl;
+        config.ElasticsearchSettings.Username = this.state.username;
+        config.ElasticsearchSettings.Password = this.state.password;
+        config.ElasticsearchSettings.Sniff = this.state.sniff;
+        config.ElasticsearchSettings.EnableIndexing = this.state.enableIndexing;
+        config.ElasticsearchSettings.EnableSearching = this.state.enableSearching;
 
         return config;
     }
 
     getStateFromConfig(config) {
         return {
-            connectionUrl: config.ElasticSearchSettings.ConnectionUrl,
-            username: config.ElasticSearchSettings.Username,
-            password: config.ElasticSearchSettings.Password,
-            sniff: config.ElasticSearchSettings.Sniff,
-            enableIndexing: config.ElasticSearchSettings.EnableIndexing,
-            enableSearching: config.ElasticSearchSettings.EnableSearching,
+            connectionUrl: config.ElasticsearchSettings.ConnectionUrl,
+            username: config.ElasticsearchSettings.Username,
+            password: config.ElasticsearchSettings.Password,
+            sniff: config.ElasticsearchSettings.Sniff,
+            enableIndexing: config.ElasticsearchSettings.EnableIndexing,
+            enableSearching: config.ElasticsearchSettings.EnableSearching,
             configTested: true,
             canSave: true
         };
-- 
cgit v1.2.3-1-g7c22

