From: Zhiting Lin Date: Wed, 14 Nov 2018 11:12:12 +0000 (+0800) Subject: add the init value for account alias. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=43e62110767197770cdcd363ab6bf4c2c46dec3d;p=bytom%2Fbytom-dashboard.git add the init value for account alias. --- diff --git a/src/features/accounts/components/AccountUpdate.jsx b/src/features/accounts/components/AccountUpdate.jsx index 0d89399..72c3b48 100644 --- a/src/features/accounts/components/AccountUpdate.jsx +++ b/src/features/accounts/components/AccountUpdate.jsx @@ -75,10 +75,9 @@ const mapStateToProps = (state, ownProps) => ({ const initialValues = (state, ownProps) => { const item = state.account.items[ownProps.params.id] if (item) { - const tags = Object.keys(item.tags || {}).length === 0 ? '{\n\t\n}' : JSON.stringify(item.tags || {}, null, 1) return { initialValues: { - tags: tags + alias: item.alias } } }