diff --git a/components/context/ProductLandingContext.tsx b/components/context/ProductLandingContext.tsx index 9e8fdcc43e..dbfced3846 100644 --- a/components/context/ProductLandingContext.tsx +++ b/components/context/ProductLandingContext.tsx @@ -77,7 +77,7 @@ export const useProductLandingContext = (): ProductLandingContextT => { export const getProductLandingContextFromRequest = (req: any): ProductLandingContextT => { const productTree = req.context.currentProductTree const page = req.context.page - const hasGuidesPage = page.children.includes('/guides') + const hasGuidesPage = (page.children || []).includes('/guides') return { ...pick(page, [ 'title', diff --git a/includes/rest_operation.html b/includes/rest_operation.html index 25a1fc2336..b75231a74d 100644 --- a/includes/rest_operation.html +++ b/includes/rest_operation.html @@ -55,7 +55,7 @@ {{ param.in }} {{ param.descriptionHTML }} - {% if param.schema.default %} + {% if param.schema.default != nil %} Default: {{ param.schema.default }} {% endif %} @@ -68,7 +68,7 @@ {{ bodyParam.in }} {{ bodyParam.description }} - {% if bodyParam.default %} + {% if bodyParam.default != nil %} Default: {{ bodyParam.default }} {% endif %}