From b404f75a34ea6f2405cd25d1c76655fe94177786 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 12 Oct 2021 13:34:26 +0200 Subject: [PATCH] UI: Fix telemetry filter --- CHANGELOG.md | 2 +- .../cc/ui/src/components/pages/TelemetryPage.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 295f25371..eb099942a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,7 +52,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/). them was the same. #1514 - ATT&CK report bug that said that the technique "`.bash_profile` and `.bashrc`" was not attempted when it actually was attempted but failed. #1511 - +- Telemetry bug that caused filtering to automatically refresh itself, periodically. #1392 ### Security - Generate a random password when creating a new user for CommunicateAsNewUser diff --git a/monkey/monkey_island/cc/ui/src/components/pages/TelemetryPage.js b/monkey/monkey_island/cc/ui/src/components/pages/TelemetryPage.js index b4a7d25d8..ef8deb92c 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/TelemetryPage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/TelemetryPage.js @@ -33,6 +33,15 @@ class TelemetryPageComponent extends AuthComponent { .then(res => this.setState({data: res.objects})); }; + shouldComponentUpdate(_, nextState) { + if (nextState.data.length > this.state.data.length) + { + return true; + } + + return false; + } + downloadIslandLog = () => { this.authFetch('/api/log/island/download') .then(res => res.json())