Do not notify observers of invalid items

This commit is contained in:
Mo Bitar
2018-05-25 15:46:18 -05:00
parent 4771bef974
commit 1ce07ae597
2 changed files with 9 additions and 5 deletions

View File

@@ -371,7 +371,7 @@ class ComponentManager {
// push immediately now
var items = [];
for(var contentType of message.data.content_types) {
items = items.concat(this.modelManager.itemsForContentType(contentType));
items = items.concat(this.modelManager.validItemsForContentType(contentType));
}
this.sendItemsInReply(component, items, message);
});