diff --git a/frontend/src/component/context/ContextForm/ContextForm.tsx b/frontend/src/component/context/ContextForm/ContextForm.tsx index 52f16b8163..bfa34ad86f 100644 --- a/frontend/src/component/context/ContextForm/ContextForm.tsx +++ b/frontend/src/component/context/ContextForm/ContextForm.tsx @@ -104,7 +104,7 @@ const ContextForm: React.FC = ({ 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()}