From 447b48360f0b0f70051105546c753f851801de16 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 13 Nov 2019 16:53:20 -0300 Subject: [PATCH] [FIX] ProfileView input navigation error when custom fields aren't set (#1383) --- app/views/ProfileView/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/ProfileView/index.js b/app/views/ProfileView/index.js index aab3c76d..25989cf0 100644 --- a/app/views/ProfileView/index.js +++ b/app/views/ProfileView/index.js @@ -366,7 +366,7 @@ class ProfileView extends React.Component { const { name, username, email, newPassword, avatarUrl, customFields, avatar, saving, showPasswordAlert } = this.state; - const { baseUrl, user } = this.props; + const { baseUrl, user, Accounts_CustomFields } = this.props; return ( this.setState({ newPassword: value })} onSubmitEditing={() => { - if (Object.keys(customFields).length) { + if (Accounts_CustomFields && Object.keys(customFields).length) { return this[Object.keys(customFields)[0]].focus(); } this.avatarUrl.focus();