aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/helpers/CustomFieldsInputs.js
diff options
context:
space:
mode:
authorZog2018-05-04 09:51:37 +0200
committercedricnjanga2018-05-06 21:09:26 -0700
commit3750a1da0650b692046d7422537a310ba5c5bfd6 (patch)
treedb7a23a06bb659b816e3389d86d51cb8707ff17f /app/javascript/helpers/CustomFieldsInputs.js
parent343133fc64d100d16b584d4ab60d641c56965ca2 (diff)
downloadchouette-core-3750a1da0650b692046d7422537a310ba5c5bfd6.tar.bz2
Refs #6550; Fix CustomFields edition for JourneyPatterns
Diffstat (limited to 'app/javascript/helpers/CustomFieldsInputs.js')
-rw-r--r--app/javascript/helpers/CustomFieldsInputs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/helpers/CustomFieldsInputs.js b/app/javascript/helpers/CustomFieldsInputs.js
index 0a57e7566..93611538e 100644
--- a/app/javascript/helpers/CustomFieldsInputs.js
+++ b/app/javascript/helpers/CustomFieldsInputs.js
@@ -43,7 +43,7 @@ export default class CustomFieldsInputs extends Component {
ref={'custom_fields.' + cf.code}
className='form-control'
disabled={this.props.disabled}
- value={cf.value || this.options(cf).default}
+ value={cf.value || this.options(cf).default || ""}
onChange={(e) => {this.props.onUpdate(cf.code, e.target.value); this.forceUpdate()} }
/>
)
@@ -56,7 +56,7 @@ export default class CustomFieldsInputs extends Component {
ref={'custom_fields.' + cf.code}
className='form-control'
disabled={this.props.disabled}
- value={cf.value || this.options(cf).default}
+ value={cf.value || this.options(cf).default || ""}
onChange={(e) => {this.props.onUpdate(cf.code, e.target.value); this.forceUpdate()} }
/>
)