mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +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)) {
|
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
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user