Check item content_type in mapping as backup
This commit is contained in:
@@ -141,7 +141,8 @@ class ModelManager {
|
|||||||
continue;
|
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(json_obj.deleted == true || unknownContentType) {
|
||||||
if(item && !unknownContentType) {
|
if(item && !unknownContentType) {
|
||||||
modelsToNotifyObserversOf.push(item);
|
modelsToNotifyObserversOf.push(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user