From 96aa78c9713580d087f877dcb95df2ec6d366cee Mon Sep 17 00:00:00 2001
From: Reed Garmsen <rgarmsen2295@gmail.com>
Date: Wed, 2 Sep 2015 13:00:35 -0700
Subject: Fixed some react warnings involving missing keys in render arrays

---
 web/react/components/user_settings_security.jsx | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

(limited to 'web/react/components/user_settings_security.jsx')

diff --git a/web/react/components/user_settings_security.jsx b/web/react/components/user_settings_security.jsx
index a9f62097a..d83151cd8 100644
--- a/web/react/components/user_settings_security.jsx
+++ b/web/react/components/user_settings_security.jsx
@@ -113,7 +113,10 @@ export default class SecurityTab extends React.Component {
 
             if (this.props.user.auth_service === '') {
                 inputs.push(
-                    <div className='form-group'>
+                    <div
+                        key='currentPasswordUpdateForm'
+                        className='form-group'
+                    >
                         <label className='col-sm-5 control-label'>Current Password</label>
                         <div className='col-sm-7'>
                             <input
@@ -126,7 +129,10 @@ export default class SecurityTab extends React.Component {
                     </div>
                 );
                 inputs.push(
-                    <div className='form-group'>
+                    <div
+                        key='newPasswordUpdateForm'
+                        className='form-group'
+                    >
                         <label className='col-sm-5 control-label'>New Password</label>
                         <div className='col-sm-7'>
                             <input
@@ -139,7 +145,10 @@ export default class SecurityTab extends React.Component {
                     </div>
                 );
                 inputs.push(
-                    <div className='form-group'>
+                    <div
+                        key='retypeNewPasswordUpdateForm'
+                        className='form-group'
+                    >
                         <label className='col-sm-5 control-label'>Retype New Password</label>
                         <div className='col-sm-7'>
                             <input
@@ -155,7 +164,10 @@ export default class SecurityTab extends React.Component {
                 submit = this.submitPassword;
             } else {
                 inputs.push(
-                    <div className='form-group'>
+                    <div
+                        key='oauthPasswordInfo'
+                        className='form-group'
+                    >
                         <label className='col-sm-12'>Log in occurs through GitLab. Please see your GitLab account settings page to update your password.</label>
                     </div>
                 );
-- 
cgit v1.2.3-1-g7c22

