OSDN Git Service
(root)
/
bytom
/
bytom-dashboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52fcded
)
add the init value for account alias.
author
Zhiting Lin
<zlin035@uottawa.ca>
Wed, 14 Nov 2018 11:12:12 +0000
(19:12 +0800)
committer
Zhiting Lin
<zlin035@uottawa.ca>
Wed, 14 Nov 2018 11:12:12 +0000
(19:12 +0800)
src/features/accounts/components/AccountUpdate.jsx
patch
|
blob
|
history
diff --git
a/src/features/accounts/components/AccountUpdate.jsx
b/src/features/accounts/components/AccountUpdate.jsx
index
0d89399
..
72c3b48
100644
(file)
--- 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: tag
s
+
alias: item.alia
s
}
}
}