summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-05-04 16:11:56 +0200
committerJoas Schilling <coding@schilljs.com>2018-05-07 15:30:12 +0200
commita134bf7349bf8d94bdd0b617d33250d2fac45c73 (patch)
tree57dcfa55d85b0e47772fb160e759cc6335a53136 /apps/workflowengine
parent0579529145d2aec9ef31aab051530085775e62a2 (diff)
downloadnextcloud-server-a134bf7349bf8d94bdd0b617d33250d2fac45c73.tar.gz
nextcloud-server-a134bf7349bf8d94bdd0b617d33250d2fac45c73.zip
Do not error when the tag does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
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;