Merge branch 'main' into repo-sync
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user