Browse Source

Do not error when the tag does not exist

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/9393/head
Joas Schilling 8 years ago
parent
commit
fc582d6253
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 4
      apps/workflowengine/js/filesystemtagsplugin.js

4
apps/workflowengine/js/filesystemtagsplugin.js

@ -63,7 +63,9 @@
},
formatSelection: function (tagId) {
var tag = OC.SystemTags.collection.get(tagId);
return OC.SystemTags.getDescriptiveTag(tag);
if (!_.isUndefined(tag)) {
return OC.SystemTags.getDescriptiveTag(tag);
}
},
escapeMarkup: function(m) {
return m;

Loading…
Cancel
Save