Skip to content

Commit 6d385e3

Browse files
aliserinepicfaace
authored andcommitted
Remove ui:order console warning about extraneous properties (rjsf-team#1508)
* isDebugMode property is added for ObjectField and order list warning about extraneous property can hide if it is needed * uiSchema order list contains extraneous warning is completely removed
1 parent ef8b7fc commit 6d385e3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/core/src/utils.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,12 +432,6 @@ export function orderProperties(properties, order) {
432432
? `properties '${arr.join("', '")}'`
433433
: `property '${arr[0]}'`;
434434
const propertyHash = arrayToHash(properties);
435-
const extraneous = order.filter(prop => prop !== "*" && !propertyHash[prop]);
436-
if (extraneous.length) {
437-
console.warn(
438-
`uiSchema order list contains extraneous ${errorPropList(extraneous)}`
439-
);
440-
}
441435
const orderFiltered = order.filter(
442436
prop => prop === "*" || propertyHash[prop]
443437
);

0 commit comments

Comments
 (0)