Skip to content

Commit

Permalink
[#57] Save user provided value in local name field
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed Dec 19, 2023
1 parent 9e8d118 commit a7aeced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/record/RecordController.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class RecordController extends React.Component {
this.setState({saved: true, showAlert: true});

record.question = this.recordComponent.current.getFormData();
record.localName = this._getLocalName();
record.localName = record.localName ? record.localName : this._getLocalName();
if (record.isNew) {
this.props.createRecord(omit(record, 'isNew'), currentUser);
} else {
Expand Down

0 comments on commit a7aeced

Please sign in to comment.