Ensured page prop is present on content api response

refs #10922
This commit is contained in:
Fabien O'Carroll 2019-08-09 18:19:00 +08:00
parent 9c2bb3811f
commit cfa0a0862b

View File

@ -35,6 +35,10 @@ const mapPost = (model, frame) => {
url.forPost(model.id, jsonModel, frame); url.forPost(model.id, jsonModel, frame);
if (utils.isContentAPI(frame)) { if (utils.isContentAPI(frame)) {
// Content api v2 still expects page prop
if (jsonModel.type === 'page') {
jsonModel.page = true;
}
date.forPost(jsonModel); date.forPost(jsonModel);
members.forPost(jsonModel, frame); members.forPost(jsonModel, frame);
} }