mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 09:30:59 +00:00
backoffice cleen up
This commit is contained in:
@@ -150,7 +150,10 @@ const FleetFormDialog = ({
|
||||
label={field.label}
|
||||
value={String(value ?? "")}
|
||||
onChange={(e) =>
|
||||
setValues((current) => ({ ...current, [field.name]: e.currentTarget.value }))
|
||||
setValues((current) => ({
|
||||
...current,
|
||||
[field.name]: e.target?.value ?? "",
|
||||
}))
|
||||
}
|
||||
error={error}
|
||||
minRows={3}
|
||||
@@ -164,7 +167,10 @@ const FleetFormDialog = ({
|
||||
label={field.label}
|
||||
value={String(value ?? "")}
|
||||
onChange={(e) =>
|
||||
setValues((current) => ({ ...current, [field.name]: e.currentTarget.value }))
|
||||
setValues((current) => ({
|
||||
...current,
|
||||
[field.name]: e.target?.value ?? "",
|
||||
}))
|
||||
}
|
||||
error={error}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user