Skip to content

Commit

Permalink
update: improve RJS form
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jul 29, 2024
1 parent 43f989b commit aee5d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/other/rjsf/templates/ArrayFieldTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function ArrayFieldTemplate(props) {
return (React.createElement(Stack, { spacing: 1, className: "ArrayFieldTemplate" },
React.createElement(ArrayFieldTitleTemplate, { idSchema: idSchema, title: uiOptions.title || title, schema: schema, uiSchema: uiSchema, required: required, registry: registry }),
React.createElement(ArrayFieldDescriptionTemplate, { idSchema: idSchema, description: uiOptions.description || schema.description, schema: schema, uiSchema: uiSchema, registry: registry }),
items ? (React.createElement(Stack, { spacing: 1, className: "ArrayFieldTemplateItems" }, items.map(({ key, ...itemProps }) => (React.createElement(ArrayFieldItemTemplate, { key: key, ...itemProps }))))) : null,
items ? (React.createElement(Stack, { spacing: 1, className: "ArrayFieldTemplate-items" }, items.map(({ key, ...itemProps }) => (React.createElement(ArrayFieldItemTemplate, { key: key, ...itemProps }))))) : null,
canAdd && (React.createElement(Grid, { container: true, justifyContent: "flex-end" },
React.createElement(Grid, { item: true },
React.createElement(Box, { mt: 2 },
Expand Down
2 changes: 1 addition & 1 deletion src/other/rjsf/templates/ArrayFieldTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function ArrayFieldTemplate<
/>

{items ? (
<Stack spacing={1} className="ArrayFieldTemplateItems">
<Stack spacing={1} className="ArrayFieldTemplate-items">
{items.map(({ key, ...itemProps }: ArrayFieldTemplateItemType<T, S, F>) => (
<ArrayFieldItemTemplate key={key} {...itemProps} />
))}
Expand Down

0 comments on commit aee5d2d

Please sign in to comment.