wires up initial data population for editing records
This commit is contained in:
@@ -93,7 +93,7 @@ class Input extends Component {
|
||||
? this.props.value
|
||||
: '';
|
||||
|
||||
const contextValue = this.props.context.fields[this.props.name]
|
||||
const contextValue = (this.props.context.fields[this.props.name] && this.props.context.fields[this.props.name].value)
|
||||
? this.props.context.fields[this.props.name].value
|
||||
: initialValue;
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ class Textarea extends Component {
|
||||
? this.props.value
|
||||
: '';
|
||||
|
||||
const contextValue = this.props.context.fields[this.props.name]
|
||||
const contextValue = (this.props.context.fields[this.props.name] && this.props.context.fields[this.props.name].value)
|
||||
? this.props.context.fields[this.props.name].value
|
||||
: initialValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user