Skip to content

Commit

Permalink
fix: add TextValidationOptions type guard to replacer
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Jan 23, 2024
1 parent 84dbf2c commit b8cb466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/modules/form/admin-form/admin-form.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
FieldUpdateDto,
FormResponseMode,
FormStatus,
TextValidationOptions,
} from '../../../../../shared/types'
import {
reorder,
Expand Down Expand Up @@ -605,7 +606,7 @@ export const insertTableShortTextColumnDefaultValidationOptions = (
newField: FieldUpdateDto,
) => {
if (newField.fieldType === BasicField.Table) {
const defaultValidationOptions = {
const defaultValidationOptions: TextValidationOptions = {
customVal: null,
selectedValidation: null,
}
Expand Down

0 comments on commit b8cb466

Please sign in to comment.