Skip to content

Commit

Permalink
fix: Fix Page with link creation - MEED-6870 - Meeds-io/meeds#1994
Browse files Browse the repository at this point in the history
Prior to this change, the page link creation sends an HTTP 400 error due to having a boolean (false) instead of a long (0). This change ensures to use '0' systematically when the attribute 'pageTemplateId' is falsy.
  • Loading branch information
boubaker committed May 16, 2024
1 parent bfe9c5c commit beebf78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function createPage(pageName, pageTitle, pageSiteName, pageSiteType, page
},
body: JSON.stringify({
pageName,
pageTemplateId,
pageTemplateId: pageTemplateId || 0,
pageType,
pageTitle,
pageSiteType,
Expand Down

0 comments on commit beebf78

Please sign in to comment.