Skip to content

Commit

Permalink
use the arraySchema from the mapping rather than resolving it again
Browse files Browse the repository at this point in the history
  • Loading branch information
kchobantonov committed Dec 30, 2024
1 parent c8c3f50 commit 8ab915f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/antd-renderers/src/layouts/ArrayLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const ArrayLayoutComponent = (
[]
);
const {
arraySchema,
enabled,
data,
path,
Expand Down Expand Up @@ -185,8 +186,6 @@ const ArrayLayoutComponent = (
[uischemas, schema, uischema.scope, path, uischema, rootSchema]
);

const arraySchema = Resolve.schema(rootSchema, uischema.scope, rootSchema);

const doDisableAdd =
disableAdd ||
appliedUiSchemaOptions.disableAdd ||
Expand Down
3 changes: 1 addition & 2 deletions packages/primereact-renderers/src/layouts/ArrayLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const ArrayLayoutComponent = (
);

const {
arraySchema,
enabled,
data,
path,
Expand Down Expand Up @@ -158,8 +159,6 @@ const ArrayLayoutComponent = (
[uischemas, schema, uischema.scope, path, uischema, rootSchema]
);

const arraySchema = Resolve.schema(rootSchema, uischema.scope, rootSchema);

const doDisableAdd =
disableAdd ||
appliedUiSchemaOptions.disableAdd ||
Expand Down

0 comments on commit 8ab915f

Please sign in to comment.