From ed83588d1a2451edd15d42a612bef4edcfdf1842 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sun, 25 May 2025 14:30:11 +0200 Subject: [PATCH] fix --- src/dashboard/Data/Browser/Notification.react.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dashboard/Data/Browser/Notification.react.js b/src/dashboard/Data/Browser/Notification.react.js index 52f021d580..ec0d69186e 100644 --- a/src/dashboard/Data/Browser/Notification.react.js +++ b/src/dashboard/Data/Browser/Notification.react.js @@ -29,7 +29,6 @@ export default class Notification extends React.Component { componentWillReceiveProps(nextProps) { if (this.state.lastNote !== nextProps.note) { - clearTimeout(this.timeout); if (this.state.hiding) { this.setState({ lastNote: nextProps.note, @@ -46,6 +45,7 @@ export default class Notification extends React.Component { if (!nextProps.note) { return; } + clearTimeout(this.timeout); this.timeout = setTimeout(() => { this.setState({ hiding: true }); this.timeout = setTimeout(() => {