diff --git a/src/components/views/dialogs/CreateSubspaceDialog.tsx b/src/components/views/dialogs/CreateSubspaceDialog.tsx index b3b468d2180..d7b21530087 100644 --- a/src/components/views/dialogs/CreateSubspaceDialog.tsx +++ b/src/components/views/dialogs/CreateSubspaceDialog.tsx @@ -70,7 +70,7 @@ const CreateSubspaceDialog: React.FC = ({ space, onAddExistingSpaceClick if ( spaceAliasField.current && joinRule === JoinRule.Public && - (await spaceAliasField.current.validate({ allowEmpty: true })) + !(await spaceAliasField.current.validate({ allowEmpty: true })) ) { spaceAliasField.current.focus(); spaceAliasField.current.validate({ allowEmpty: true, focused: true });