12479: Accept tags with empty values
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 16 Jan 2018 20:45:46 +0000 (17:45 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 16 Jan 2018 20:45:46 +0000 (17:45 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

apps/workbench/app/assets/javascripts/components/edit_tags.js

index 607e2151afdf13fd357f5933c3e69d372e1f3f4a..3389dd7289dfb2be0d6f50cb3fe1441cb537dd08 100644 (file)
@@ -233,7 +233,8 @@ window.TagEditorApp = {
                     onclick: function(e) {
                         var tags = {}
                         vnode.state.tags.forEach(function(t) {
-                            if (t.name() != '' && t.value() != '') {
+                            // Only ignore tags with empty key
+                            if (t.name() != '') {
                                 tags[t.name()] = t.value()
                             }
                         })