Skip to content

Commit 364b8db

Browse files
eneufeldedgarmueller
authored andcommitted
Use hasType in schemaSubPathMatches
1 parent 99f447a commit 364b8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/testers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const schemaSubPathMatches = (
105105
}
106106
const schemaPath = uischema.scope;
107107
let currentDataSchema: JsonSchema = schema;
108-
if (schema.type === 'object') {
108+
if (hasType(schema, 'object')) {
109109
currentDataSchema = resolveSchema(schema, schemaPath);
110110
}
111111
currentDataSchema = get(currentDataSchema, subPath);

0 commit comments

Comments
 (0)