From a134bf7349bf8d94bdd0b617d33250d2fac45c73 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 4 May 2018 16:11:56 +0200 Subject: [PATCH] Do not error when the tag does not exist Signed-off-by: Joas Schilling --- apps/workflowengine/js/filesystemtagsplugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;