Fixed required field test

This commit is contained in:
Alex Liebowitz 2016-07-27 13:45:03 -04:00
parent 9298db089b
commit 31417fcc57

View file

@ -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;
}
}