Fix filtering of absent metadata fields

This commit is contained in:
Alex Liebowitz 2016-07-27 13:54:25 -04:00
parent 31417fcc57
commit 03052fde62

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