From a3db64a0ace177bd30ceac268043772515ed2c11 Mon Sep 17 00:00:00 2001 From: Leonard Yam Date: Thu, 27 Jul 2023 23:13:57 +0800 Subject: [PATCH] fix: remove redundant optional chaining --- src/app/models/field/numberField.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/models/field/numberField.ts b/src/app/models/field/numberField.ts index 9101e14333..b01ac770de 100644 --- a/src/app/models/field/numberField.ts +++ b/src/app/models/field/numberField.ts @@ -50,13 +50,13 @@ const createNumberFieldSchema = () => { ValidationOptionsSchema.virtual('customMin').get(function ( this: NumberValidationOptions, ) { - return this.LengthValidationOptions?.customVal + return this.LengthValidationOptions.customVal }) ValidationOptionsSchema.virtual('customMax').get(function ( this: NumberValidationOptions, ) { - return this.LengthValidationOptions?.customVal + return this.LengthValidationOptions.customVal }) const NumberFieldSchema = new Schema({