Skip to content

Commit 440d052

Browse files
authored
Merge pull request #12 from xuxingeren/main
fix: 修复数组添加按钮展示
2 parents 7692287 + 9097979 commit 440d052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchemaEditor/SchemaItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ function SchemaItem(props: SchemaItemProps) {
275275
}}
276276
/>
277277
</Tooltip>
278-
{!isRoot || !isArrayItems || schema.type === 'object' ? (
278+
{!isRoot && !isArrayItems || schema.type === 'object' ? (
279279
<Dropdown
280280
disabled={!addChildItems}
281281
placement="bottom"

0 commit comments

Comments
 (0)