From 04b00febd14dcca311b1a7458788832889f4696d Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Fri, 25 Sep 2020 12:49:23 +0300 Subject: [PATCH] Fixed a bug, where no Unexecuted rules appeared --- .../zerotrust/scoutsuite/ScoutSuiteSingleRuleDropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ScoutSuiteSingleRuleDropdown.js b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ScoutSuiteSingleRuleDropdown.js index 4118d50d3..6c0fb6cf5 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ScoutSuiteSingleRuleDropdown.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/scoutsuite/ScoutSuiteSingleRuleDropdown.js @@ -71,7 +71,7 @@ export default function ScoutSuiteSingleRuleDropdown(props) { } export function getRuleStatus(rule) { - if (rule.checked_items.length === 0) { + if (rule.checked_items === 0) { return STATUSES.STATUS_UNEXECUTED } else if (rule.items.length === 0) { return STATUSES.STATUS_PASSED