Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Aug 31, 2017
1 parent de9a6b7 commit c1b656d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/widgets/detail/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export Create from './Create';
export Edit from './Edit';
export Show from './Show';
export SimpleShowLayout from './SimpleShowLayout';
5 changes: 3 additions & 2 deletions src/widgets/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export function fetchValue(element, defaultValue = "") {

export function writeValue(element, value) {
if (element.props.convert && element.props.convert.write) {
value = element.props.convert.write(value)
element.props.convert.write(value)
}else{
set(element.record || element.props.record, element.props.source, value)
}
set(element.record || element.props.record, element.props.source, value)
}

0 comments on commit c1b656d

Please sign in to comment.