diff --git a/src/react/atlascode/startwork/StartWorkPage.tsx b/src/react/atlascode/startwork/StartWorkPage.tsx index 940d0a49..e1cd3074 100644 --- a/src/react/atlascode/startwork/StartWorkPage.tsx +++ b/src/react/atlascode/startwork/StartWorkPage.tsx @@ -181,6 +181,8 @@ const StartWorkPage: React.FunctionComponent = () => { const handleLocalBranchChange = useCallback( (event: React.ChangeEvent<{ name?: string | undefined; value: string }>) => { + // spaces are not allowed in branch names + event.target.value = event.target.value.replace(/ /g, '-'); setLocalBranch(event.target.value); }, [setLocalBranch],