Fixed a bug, where no Unexecuted rules appeared

This commit is contained in:
VakarisZ 2020-09-25 12:49:23 +03:00
parent 059d86b0c2
commit 04b00febd1
1 changed files with 1 additions and 1 deletions

View File

@ -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