fix: normalize text input values
This commit is contained in:
parent
f1ff3be9e0
commit
8b1f83d7f5
1 changed files with 13 additions and 5 deletions
|
|
@ -531,7 +531,15 @@ export function TicketCustomFieldsSection({ ticket }: TicketCustomFieldsSectionP
|
|||
</FieldLabel>
|
||||
<Input
|
||||
id={fieldId}
|
||||
value={typeof value === "string" ? value : value ?? ""}
|
||||
value={
|
||||
typeof value === "string"
|
||||
? value
|
||||
: typeof value === "number"
|
||||
? String(value)
|
||||
: value != null
|
||||
? String(value)
|
||||
: ""
|
||||
}
|
||||
onChange={(event) => handleFieldChange(field, event.target.value)}
|
||||
/>
|
||||
{helpText}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue