Hot fix value in form not show

This commit is contained in:
2023-11-01 14:55:39 +07:00
parent ba28e47639
commit 52595e8a5d
+3 -1
View File
@@ -87,7 +87,9 @@ const getValueFromObj = <T>(obj: T | null = null): TKeyString => {
for (const key of Object.keys(obj)) { for (const key of Object.keys(obj)) {
const tempValue = obj[key as keyof typeof obj]; const tempValue = obj[key as keyof typeof obj];
const value: string | boolean | number = const value: string | boolean | number =
typeof tempValue === 'boolean' || typeof tempValue === 'string' typeof tempValue === 'boolean' ||
typeof tempValue === 'string' ||
typeof tempValue === 'number'
? tempValue ? tempValue
: ''; : '';