From 9afcf599bac3a4ad1eab6d6a585f47cd67fae501 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 7 Aug 2023 09:22:03 +0100 Subject: [PATCH] Fix create subspace dialog not working for public space creation (#11367) --- 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 b3b468d218..d7b2153008 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 });