Skip to content

Commit 3891381

Browse files
authored
fix: Notifications fade out erratically when executing a script on large number of rows (#2822)
1 parent 380bad2 commit 3891381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dashboard/Data/Browser/Notification.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export default class Notification extends React.Component {
2929

3030
componentWillReceiveProps(nextProps) {
3131
if (this.state.lastNote !== nextProps.note) {
32-
clearTimeout(this.timeout);
3332
if (this.state.hiding) {
3433
this.setState({
3534
lastNote: nextProps.note,
@@ -46,6 +45,7 @@ export default class Notification extends React.Component {
4645
if (!nextProps.note) {
4746
return;
4847
}
48+
clearTimeout(this.timeout);
4949
this.timeout = setTimeout(() => {
5050
this.setState({ hiding: true });
5151
this.timeout = setTimeout(() => {

0 commit comments

Comments
 (0)