Do not error when the tag does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
2dd8e90a9f
commit
fc582d6253
|
@ -63,7 +63,9 @@
|
||||||
},
|
},
|
||||||
formatSelection: function (tagId) {
|
formatSelection: function (tagId) {
|
||||||
var tag = OC.SystemTags.collection.get(tagId);
|
var tag = OC.SystemTags.collection.get(tagId);
|
||||||
|
if (!_.isUndefined(tag)) {
|
||||||
return OC.SystemTags.getDescriptiveTag(tag);
|
return OC.SystemTags.getDescriptiveTag(tag);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
escapeMarkup: function(m) {
|
escapeMarkup: function(m) {
|
||||||
return m;
|
return m;
|
||||||
|
|
Loading…
Reference in New Issue