Skip to content

Commit 8ab915f

Browse files
committed
use the arraySchema from the mapping rather than resolving it again
1 parent c8c3f50 commit 8ab915f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/antd-renderers/src/layouts/ArrayLayout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const ArrayLayoutComponent = (
8181
[]
8282
);
8383
const {
84+
arraySchema,
8485
enabled,
8586
data,
8687
path,
@@ -185,8 +186,6 @@ const ArrayLayoutComponent = (
185186
[uischemas, schema, uischema.scope, path, uischema, rootSchema]
186187
);
187188

188-
const arraySchema = Resolve.schema(rootSchema, uischema.scope, rootSchema);
189-
190189
const doDisableAdd =
191190
disableAdd ||
192191
appliedUiSchemaOptions.disableAdd ||

packages/primereact-renderers/src/layouts/ArrayLayout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const ArrayLayoutComponent = (
6969
);
7070

7171
const {
72+
arraySchema,
7273
enabled,
7374
data,
7475
path,
@@ -158,8 +159,6 @@ const ArrayLayoutComponent = (
158159
[uischemas, schema, uischema.scope, path, uischema, rootSchema]
159160
);
160161

161-
const arraySchema = Resolve.schema(rootSchema, uischema.scope, rootSchema);
162-
163162
const doDisableAdd =
164163
disableAdd ||
165164
appliedUiSchemaOptions.disableAdd ||

0 commit comments

Comments
 (0)