summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-05-04 16:11:56 +0200
committerJoas Schilling <coding@schilljs.com>2018-05-04 16:11:56 +0200
commitfc582d6253e6a2b5f2835fa155fb334bd9a981ee (patch)
treee4b0a75de50d3c13d5131cd7a4659d4650186ed9 /apps/workflowengine/js
parent2dd8e90a9f8cdcbaef361e684c99afc61e51c659 (diff)
downloadnextcloud-server-fc582d6253e6a2b5f2835fa155fb334bd9a981ee.tar.gz
nextcloud-server-fc582d6253e6a2b5f2835fa155fb334bd9a981ee.zip
Do not error when the tag does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine/js')
-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;