Fix formatting
This commit is contained in:
parent
3475670f1d
commit
0a1de24fdf
1 changed files with 7 additions and 8 deletions
|
|
@ -295,7 +295,9 @@ const DynamicJsonForm = ({
|
||||||
return (
|
return (
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{propSchema.description && (
|
{propSchema.description && (
|
||||||
<p className="text-sm text-gray-600">{propSchema.description}</p>
|
<p className="text-sm text-gray-600">
|
||||||
|
{propSchema.description}
|
||||||
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{propSchema.items?.description && (
|
{propSchema.items?.description && (
|
||||||
|
|
@ -333,10 +335,7 @@ const DynamicJsonForm = ({
|
||||||
const defaultValue = getArrayItemDefault(
|
const defaultValue = getArrayItemDefault(
|
||||||
propSchema.items as JsonSchemaType,
|
propSchema.items as JsonSchemaType,
|
||||||
);
|
);
|
||||||
handleFieldChange(path, [
|
handleFieldChange(path, [...arrayValue, defaultValue]);
|
||||||
...arrayValue,
|
|
||||||
defaultValue,
|
|
||||||
]);
|
|
||||||
}}
|
}}
|
||||||
title={
|
title={
|
||||||
propSchema.items?.description
|
propSchema.items?.description
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue