From ca66a595bb9e6701afdb957ea76841816e972488 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 4 Aug 2023 09:57:26 +0100 Subject: [PATCH] Fix create subspace dialog not working for public space creation --- src/components/views/dialogs/CreateSubspaceDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });