We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef24610 commit 492e5fdCopy full SHA for 492e5fd
packages/core/src/mappers/renderer.ts
@@ -592,11 +592,12 @@ export const mapStateToControlProps = (
592
const required =
593
controlElement.scope !== undefined &&
594
isRequired(ownProps.schema, controlElement.scope, rootSchema);
595
- const resolvedSchema = Resolve.schema(
596
- ownProps.schema || rootSchema,
597
- controlElement.scope,
598
- rootSchema
599
- );
+ const resolvedSchema =
+ Resolve.schema(
+ ownProps.schema || rootSchema,
+ controlElement.scope,
+ rootSchema
600
+ ) ?? ownProps.schema; // if resolve fails then rely that the ownProps.schema if exist
601
const errors = getErrorAt(path, resolvedSchema)(state);
602
603
const description =
0 commit comments