Skip to content

Commit c434322

Browse files
[docs-infra] Fix display when the default props is undefined (#41114)
1 parent 1077906 commit c434322

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/src/modules/components/ApiPage/table/PropertiesTable.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ export default function PropertiesTable(props: PropertiesTableProps) {
177177
}
178178
</td>
179179
<td className="default-column">
180-
<span className="MuiApi-table-item-default">{propDefault}</span>
180+
{propDefault ? (
181+
<span className="MuiApi-table-item-default">{propDefault}</span>
182+
) : (
183+
'-'
184+
)}
181185
</td>
182186
<td className="MuiPropTable-description-column">
183187
{description && <PropDescription description={description} />}

0 commit comments

Comments
 (0)