1
0
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:
Fredrik Strand Oseberg 2022-01-27 16:42:04 +01:00 committed by GitHub
parent eb9eca38e6
commit e551d8efd8

View File

@ -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()}