Check item content_type in mapping as backup

This commit is contained in:
Mo Bitar
2018-02-12 14:13:59 -06:00
parent bc9e89d6de
commit c83432af23

View File

@@ -141,7 +141,8 @@ class ModelManager {
continue;
}
var unknownContentType = !_.includes(this.acceptableContentTypes, json_obj["content_type"]);
let contentType = json_obj["content_type"] || (item && item.content_type);
var unknownContentType = !_.includes(this.acceptableContentTypes, contentType);
if(json_obj.deleted == true || unknownContentType) {
if(item && !unknownContentType) {
modelsToNotifyObserversOf.push(item);