Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 9afcf59

Browse files
authored
Fix create subspace dialog not working for public space creation (#11367)
1 parent aab0c9a commit 9afcf59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/CreateSubspaceDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const CreateSubspaceDialog: React.FC<IProps> = ({ space, onAddExistingSpaceClick
7070
if (
7171
spaceAliasField.current &&
7272
joinRule === JoinRule.Public &&
73-
(await spaceAliasField.current.validate({ allowEmpty: true }))
73+
!(await spaceAliasField.current.validate({ allowEmpty: true }))
7474
) {
7575
spaceAliasField.current.focus();
7676
spaceAliasField.current.validate({ allowEmpty: true, focused: true });

0 commit comments

Comments
 (0)