From 03052fde62b4b53ce5c838e07ff8f9ddfe6719a3 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 27 Jul 2016 13:54:25 -0400 Subject: [PATCH] Fix filtering of absent metadata fields --- js/page/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/page/publish.js b/js/page/publish.js index 37230037d..3dda5d090 100644 --- a/js/page/publish.js +++ b/js/page/publish.js @@ -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; } }