From ca8b8d1245026672b1a56d256bb8ff3c8bb1bba9 Mon Sep 17 00:00:00 2001
From: Corey Hulen <corey@hulen.com>
Date: Mon, 27 Mar 2017 18:12:24 -0700
Subject: Fixing cancel ids for selenium (#5896)

* Fixing ids for selenium

* Fixing ids

* Fixing prop
---
 webapp/components/setting_item_max.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'webapp/components/setting_item_max.jsx')

diff --git a/webapp/components/setting_item_max.jsx b/webapp/components/setting_item_max.jsx
index 2da500394..2e7be779a 100644
--- a/webapp/components/setting_item_max.jsx
+++ b/webapp/components/setting_item_max.jsx
@@ -87,8 +87,10 @@ export default class SettingItemMax extends React.Component {
         }
 
         let title;
+        let titleProp = 'unknownTitle';
         if (this.props.title) {
             title = <li className='col-sm-12 section-title'>{this.props.title}</li>;
+            titleProp = this.props.title;
         }
 
         return (
@@ -107,7 +109,7 @@ export default class SettingItemMax extends React.Component {
                             {clientError}
                             {submit}
                             <a
-                                id={Utils.createSafeId(this.props.title.toString() + 'Cancel')}
+                                id={Utils.createSafeId(titleProp) + 'Cancel'}
                                 className='btn btn-sm'
                                 href='#'
                                 onClick={this.props.updateSection}
-- 
cgit v1.2.3-1-g7c22

