From f892e9345d80b541489f5aec6544fd49b34366f6 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Thu, 15 Feb 2024 16:55:57 +0100 Subject: [PATCH] [docs-infra] Fix display of empty default props --- .../modules/components/ApiPage/table/PropertiesTable.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/modules/components/ApiPage/table/PropertiesTable.tsx b/docs/src/modules/components/ApiPage/table/PropertiesTable.tsx index c6f474c06d8cb2..2e245a3b0f7eb6 100644 --- a/docs/src/modules/components/ApiPage/table/PropertiesTable.tsx +++ b/docs/src/modules/components/ApiPage/table/PropertiesTable.tsx @@ -177,7 +177,11 @@ export default function PropertiesTable(props: PropertiesTableProps) { } - {propDefault} + {propDefault ? ( + {propDefault} + ) : ( + '-' + )} {description && }