From 8708949cc55289e15bf793afb612cbb5ba867286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Skrzypczak?= <43343989+Notlstn@users.noreply.github.com> Date: Fri, 17 Dec 2021 13:57:23 +0100 Subject: [PATCH] Fix build error --- lib/form-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/form-utils.ts b/lib/form-utils.ts index 0167f0d..b76cc9c 100644 --- a/lib/form-utils.ts +++ b/lib/form-utils.ts @@ -129,7 +129,7 @@ export function changeFormValue( fieldName: A | string, value: GenericTypeOfFormField, ): T { - const fieldNameArr: string[] = typeof fieldName === 'string' ? fieldName.split('.') : [fieldName as string] + const fieldNameArr: string[] = typeof fieldName === 'string' ? fieldName.split('.') : [fieldName as unknown as string] const firstKey = fieldNameArr.shift() return Object.keys(formToChange).reduce((prev: T, key) => { const field = formToChange[key]