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.
1 parent 380bad2 commit 3891381Copy full SHA for 3891381
src/dashboard/Data/Browser/Notification.react.js
@@ -29,7 +29,6 @@ export default class Notification extends React.Component {
29
30
componentWillReceiveProps(nextProps) {
31
if (this.state.lastNote !== nextProps.note) {
32
- clearTimeout(this.timeout);
33
if (this.state.hiding) {
34
this.setState({
35
lastNote: nextProps.note,
@@ -46,6 +45,7 @@ export default class Notification extends React.Component {
46
45
if (!nextProps.note) {
47
return;
48
}
+ clearTimeout(this.timeout);
49
this.timeout = setTimeout(() => {
50
this.setState({ hiding: true });
51
0 commit comments