Fix create subspace dialog not working for public space creation (#11367)

t3chguy/dedup-icons-17oct
Michael Telatynski 2023-08-07 09:22:03 +01:00 committed by GitHub
parent aab0c9a9e1
commit 9afcf599ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ const CreateSubspaceDialog: React.FC<IProps> = ({ 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 });