Fix handling of absent license URLs
Before, if an option was picked that has no license URL field, it would submit undefined for license_url. Now it correctly omits the key.
This commit is contained in:
parent
28e7f1e3b2
commit
5476c29322
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ var PublishPage = React.createClass({
|
|||
} else if (this.state.otherLicenseChosen) {
|
||||
return this.state.otherLicenseUrl;
|
||||
} else {
|
||||
return this.refs.meta_license.getSelectedElement().getAttribute('data-url');
|
||||
return this.refs.meta_license.getSelectedElement().getAttribute('data-url') || '' ;
|
||||
}
|
||||
},
|
||||
componentDidMount: function() {
|
||||
|
|
Loading…
Reference in a new issue