Hi,
I am trying to modify the way Discussion List Items are displayed. Specifically I want to dynamically stop certain tags from being displayed. The tags extention adds tags like so -
extend(DiscussionListItem.prototype, 'infoItems', function(items) {
const tags = this.props.discussion.tags();
if (tags && tags.length) {
items.add('tags', tagsLabel(tags), 10);
}
});
I was assuming that in my extentions bootstrap.js if I did
extend(DiscussionListItem.prototype, 'infoItems', function(items) {
items.get('tags');
});
I would get the list of tags added by the tags extension. But that is not the case.
The following returns false.
items.has('tags');
Why is that?