Skip to content

Commit

Permalink
Merge pull request #12 from xuxingeren/main
Browse files Browse the repository at this point in the history
fix: 修复数组添加按钮展示
  • Loading branch information
lin-mt authored Dec 25, 2024
2 parents 7692287 + 9097979 commit 440d052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonSchemaEditor/SchemaItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function SchemaItem(props: SchemaItemProps) {
}}
/>
</Tooltip>
{!isRoot || !isArrayItems || schema.type === 'object' ? (
{!isRoot && !isArrayItems || schema.type === 'object' ? (
<Dropdown
disabled={!addChildItems}
placement="bottom"
Expand Down

0 comments on commit 440d052

Please sign in to comment.