diff --git a/resources/scripts/hoc/asModal.tsx b/resources/scripts/hoc/asModal.tsx index 876037a69..bb947e7c7 100644 --- a/resources/scripts/hoc/asModal.tsx +++ b/resources/scripts/hoc/asModal.tsx @@ -13,7 +13,6 @@ export type SettableModalProps = Omit; } @@ -31,7 +30,6 @@ function asModal

(modalProps?: SettableModalProps | ((props: P) => this.state = { render: props.visible, visible: props.visible, - showSpinnerOverlay: undefined, propOverrides: {}, }; } @@ -39,7 +37,6 @@ function asModal

(modalProps?: SettableModalProps | ((props: P) => get computedModalProps (): Readonly { return { ...(typeof modalProps === 'function' ? modalProps(this.props) : modalProps), - showSpinnerOverlay: this.state.showSpinnerOverlay, ...this.state.propOverrides, visible: this.state.visible, }; @@ -50,7 +47,7 @@ function asModal

(modalProps?: SettableModalProps | ((props: P) => */ componentDidUpdate (prevProps: Readonly

, prevState: Readonly) { if (prevProps.visible && !this.props.visible) { - this.setState({ visible: false, showSpinnerOverlay: false }); + this.setState({ visible: false, propOverrides: {} }); } else if (!prevProps.visible && this.props.visible) { this.setState({ render: true, visible: true }); }