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 0b9fde6 commit d5c5972Copy full SHA for d5c5972
runner/src/server/plugins/engine/components/NumberField.ts
@@ -40,12 +40,7 @@ export class NumberField extends FormComponent {
40
}
41
42
if (def.options.required === false) {
43
- const optionalSchema = joi
44
- .alternatives()
45
- .try(
46
- joi.string().allow(null).allow("").default("").optional(),
47
- componentSchema
48
- );
+ const optionalSchema = componentSchema.allow(null).allow("").optional();
49
this.schema = optionalSchema;
50
} else {
51
this.schema = componentSchema;
0 commit comments