mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Hot fix value in form not show
This commit is contained in:
@@ -87,7 +87,9 @@ const getValueFromObj = <T>(obj: T | null = null): TKeyString => {
|
||||
for (const key of Object.keys(obj)) {
|
||||
const tempValue = obj[key as keyof typeof obj];
|
||||
const value: string | boolean | number =
|
||||
typeof tempValue === 'boolean' || typeof tempValue === 'string'
|
||||
typeof tempValue === 'boolean' ||
|
||||
typeof tempValue === 'string' ||
|
||||
typeof tempValue === 'number'
|
||||
? tempValue
|
||||
: '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user