From 2e36eff52e0317c01b3d3e02c8f8486692afdb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 21 Aug 2018 20:39:32 +0100 Subject: [PATCH] fix(ui): all components should use alertStore.fetchWithThrottle() --- ui/src/Components/Fetcher/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/Components/Fetcher/index.js b/ui/src/Components/Fetcher/index.js index f1f85e896..e20f0332a 100644 --- a/ui/src/Components/Fetcher/index.js +++ b/ui/src/Components/Fetcher/index.js @@ -28,7 +28,7 @@ const Fetcher = observer( this.interval = newInterval; this.timer = setInterval( - () => alertStore.fetch(), + () => alertStore.fetchWithThrottle(), this.interval * 1000 ); } @@ -37,7 +37,7 @@ const Fetcher = observer( componentDidUpdate() { const { alertStore } = this.props; - alertStore.fetch(); + alertStore.fetchWithThrottle(); this.setTimer(); } @@ -45,7 +45,7 @@ const Fetcher = observer( componentDidMount() { const { alertStore } = this.props; - alertStore.fetch(); + alertStore.fetchWithThrottle(); this.setTimer(); }