Fixed canary api for page/type column

no-issue

Canary didn't have all of the post/type changes copied across
This commit is contained in:
Fabien O'Carroll 2019-08-13 10:31:49 +08:00
parent f7b323e223
commit a5a7e7e919

View File

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