Fixed required field test
This commit is contained in:
parent
9298db089b
commit
31417fcc57
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ var PublishPage = React.createClass({
|
|||
var metadata = {ver: '0.0.2'};
|
||||
for (let metaField of ['title', 'author', 'description', 'thumbnail', 'license', 'license_url', 'language', 'nsfw']) {
|
||||
var value = this.refs['meta_' + metaField].getValue();
|
||||
if (value) {
|
||||
if (value === '') {
|
||||
metadata[metaField] = value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue