Skip to content

Commit

Permalink
Ensured page prop is present on content api response
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed Aug 12, 2019
1 parent cb820db commit 5aac7c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/server/api/v2/utils/serializers/output/utils/mapper.js
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5aac7c8

Please sign in to comment.