Skip to content

Commit cb2226a

Browse files
Code-Hexgithub-actions[bot]
authored andcommitted
Apply auto lint-fix changes
1 parent a18ece2 commit cb2226a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/yup/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,9 @@ function shapeFields(fields: readonly (FieldDefinitionNode | InputValueDefinitio
281281
defaultValue?.kind === Kind.INT
282282
|| defaultValue?.kind === Kind.FLOAT
283283
|| defaultValue?.kind === Kind.BOOLEAN
284-
)
284+
) {
285285
fieldSchema = `${fieldSchema}.default(${defaultValue.value})`;
286+
}
286287

287288
if (defaultValue?.kind === Kind.STRING || defaultValue?.kind === Kind.ENUM) {
288289
if (config.useEnumTypeAsDefaultValue && defaultValue?.kind !== Kind.STRING) {

0 commit comments

Comments
 (0)