1
0
mirror of synced 2026-01-29 03:03:52 -05:00

Merge branch 'main' into repo-sync

This commit is contained in:
Octomerger Bot
2021-06-15 11:57:17 +10:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -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',

View File

@@ -55,7 +55,7 @@
<td class="opacity-70">{{ param.in }}</td>
<td class="opacity-70">
{{ param.descriptionHTML }}
{% if param.schema.default %}
{% if param.schema.default != nil %}
Default: <code>{{ param.schema.default }}</code>
{% endif %}
</td>
@@ -68,7 +68,7 @@
<td class="opacity-70">{{ bodyParam.in }}</td>
<td class="opacity-70">
{{ bodyParam.description }}
{% if bodyParam.default %}
{% if bodyParam.default != nil %}
Default: <code>{{ bodyParam.default }}</code>
{% endif %}
</td>