1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 18:42:31 +01:00

Reset modal spinner state when dismissed; closes #2647

This commit is contained in:
Dane Everitt 2020-11-02 20:03:28 -08:00
parent 027c705733
commit 7ec614ed2c
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -43,7 +43,7 @@ function asModal<P extends object> (modalProps?: ExtendedModalProps | ((props: P
componentDidUpdate (prevProps: Readonly<P & AsModalProps>) {
if (prevProps.visible && !this.props.visible) {
// noinspection JSPotentiallyInvalidUsageOfThis
this.setState({ visible: false });
this.setState({ visible: false, showSpinnerOverlay: false });
} else if (!prevProps.visible && this.props.visible) {
// noinspection JSPotentiallyInvalidUsageOfThis
this.setState({ render: true, visible: true });