diff --git a/apps/workflowengine/js/filesystemtagsplugin.js b/apps/workflowengine/js/filesystemtagsplugin.js index dc6f608d85..e66a35b73b 100644 --- a/apps/workflowengine/js/filesystemtagsplugin.js +++ b/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;