Fix create subspace dialog not working for public space creation (#11367)
parent
aab0c9a9e1
commit
9afcf599ba
|
@ -70,7 +70,7 @@ const CreateSubspaceDialog: React.FC<IProps> = ({ space, onAddExistingSpaceClick
|
||||||
if (
|
if (
|
||||||
spaceAliasField.current &&
|
spaceAliasField.current &&
|
||||||
joinRule === JoinRule.Public &&
|
joinRule === JoinRule.Public &&
|
||||||
(await spaceAliasField.current.validate({ allowEmpty: true }))
|
!(await spaceAliasField.current.validate({ allowEmpty: true }))
|
||||||
) {
|
) {
|
||||||
spaceAliasField.current.focus();
|
spaceAliasField.current.focus();
|
||||||
spaceAliasField.current.validate({ allowEmpty: true, focused: true });
|
spaceAliasField.current.validate({ allowEmpty: true, focused: true });
|
||||||
|
|
Loading…
Reference in New Issue