summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/js/filesystemtagsplugin.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/workflowengine/js/filesystemtagsplugin.js b/apps/workflowengine/js/filesystemtagsplugin.js
index dc6f608d85a..e66a35b73b9 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;