Fix group creation when clicking create button

This commit is contained in:
Evan Hahn 2022-02-14 16:31:37 -06:00 committed by GitHub
parent a0b05f41e3
commit ae5fc1df86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,7 +227,12 @@ export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper<LeftPaneSetGr
i18n: LocalizerType; i18n: LocalizerType;
}>): ReactChild { }>): ReactChild {
return ( return (
<Button disabled={!this.canCreateGroup()} onClick={createGroup}> <Button
disabled={!this.canCreateGroup()}
onClick={() => {
createGroup();
}}
>
{this.isCreating ? ( {this.isCreating ? (
<Spinner size="20px" svgSize="small" direction="on-avatar" /> <Spinner size="20px" svgSize="small" direction="on-avatar" />
) : ( ) : (