mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
fix: trim context field name (#634)
This commit is contained in:
parent
eb9eca38e6
commit
e551d8efd8
@ -104,7 +104,7 @@ const ContextForm: React.FC<IContextForm> = ({
|
||||
label="Context name"
|
||||
value={contextName}
|
||||
disabled={mode === 'Edit'}
|
||||
onChange={e => setContextName(e.target.value)}
|
||||
onChange={e => setContextName(trim(e.target.value))}
|
||||
error={Boolean(errors.name)}
|
||||
errorText={errors.name}
|
||||
onFocus={() => clearErrors()}
|
||||
|
Loading…
Reference in New Issue
Block a user