From 5817226447aa87411fef573d52572d6219e7c511 Mon Sep 17 00:00:00 2001 From: Shreya Date: Wed, 5 Aug 2020 02:45:22 +0530 Subject: [PATCH] Return results as it is from PostBreachParser if no changes --- .../components/report-components/security/PostBreachParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/security/PostBreachParser.js b/monkey/monkey_island/cc/ui/src/components/report-components/security/PostBreachParser.js index 39dfecf7e..b56a532f7 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/security/PostBreachParser.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/security/PostBreachParser.js @@ -23,7 +23,7 @@ function aggregateShellStartupPba(results) { failedOutputs += results[i].result[0]; } } - if(aggregatedPbaResult === undefined) return; + if(aggregatedPbaResult === undefined) return results; results = results.filter(result => result.name !== SHELL_STARTUP_NAME); aggregatedPbaResult.result[0] = successfulOutputs + failedOutputs;