Do not error when the tag does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
0579529145
commit
a134bf7349
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue