We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94a1136 + f6c91b2 commit dc53af4Copy full SHA for dc53af4
src/components/CopilotModal.js
@@ -61,7 +61,7 @@ class CopilotModal extends Component<Props, State> {
61
};
62
63
componentWillReceiveProps(nextProps: Props) {
64
- if (nextProps.visible === false) {
+ if (this.props.visible === true && nextProps.visible === false) {
65
this.reset();
66
}
67
0 commit comments