Skip to content

Commit

Permalink
fix: default column lost bug for API table (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript authored Jun 4, 2024
1 parent 8fa976d commit 8566e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/builtins/API/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ const API: FC<{
<th>{intl.formatMessage({ id: 'api.component.name' })}</th>
<th>{intl.formatMessage({ id: 'api.component.description' })}</th>
<th>{intl.formatMessage({ id: 'api.component.type' })}</th>
{props.type === 'props' && (
{type === 'props' && (
<th>{intl.formatMessage({ id: 'api.component.default' })}</th>
)}
</tr>
Expand All @@ -349,7 +349,7 @@ const API: FC<{
<td>
<APIType {...prop} />
</td>
{props.type === 'props' && (
{type === 'props' && (
<td>
<code>
{definition.propsConfig.required?.includes(name)
Expand Down

0 comments on commit 8566e7b

Please sign in to comment.