Skip to content

Commit 9111316

Browse files
committed
remove ?
1 parent a7fa97b commit 9111316

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/mappers/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const doCreateDefaultValue = (
186186
rootSchema: JsonSchema
187187
) => {
188188
const resolvedSchema =
189-
typeof schema?.$ref === 'string'
189+
typeof schema.$ref === 'string'
190190
? Resolve.schema(rootSchema, schema.$ref, rootSchema)
191191
: schema;
192192
if (resolvedSchema.default !== undefined) {

packages/core/src/util/resolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const resolveSchemaWithSegments = (
136136
}
137137

138138
// use typeof because schema can by of any type - check singleSegmentResolveSchema below
139-
if (typeof schema?.$ref === 'string') {
139+
if (typeof schema.$ref === 'string') {
140140
schema = resolveSchema(rootSchema, schema.$ref, rootSchema);
141141
}
142142

0 commit comments

Comments
 (0)