Fix space create menu eating first character of name in private space creation

pull/21833/head
Michael Telatynski 2021-09-14 14:35:33 +01:00
parent ff39f480bc
commit e3ec00bcdf
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ export const SpaceCreateForm: React.FC<ISpaceCreateFormProps> = ({
const newName = ev.target.value; const newName = ev.target.value;
if (!alias || alias === `#${nameToLocalpart(name)}:${domain}`) { if (!alias || alias === `#${nameToLocalpart(name)}:${domain}`) {
setAlias(`#${nameToLocalpart(newName)}:${domain}`); setAlias(`#${nameToLocalpart(newName)}:${domain}`);
aliasFieldRef.current.validate({ allowEmpty: true }); aliasFieldRef.current?.validate({ allowEmpty: true });
} }
setName(newName); setName(newName);
}} }}