Use 1/0 instead of true/false

This commit is contained in:
Michael Shamoon
2022-05-20 22:23:35 -07:00
parent 3d1a0b49a8
commit bcbaa79311
2 changed files with 14 additions and 4 deletions

View File

@@ -313,7 +313,10 @@ export class FilterEditorComponent implements OnInit, OnDestroy {
break
case FILTER_ASN_ISNULL:
this.textFilterTarget = TEXT_FILTER_TARGET_ASN
this.textFilterModifier = TEXT_FILTER_MODIFIER_NULL
this.textFilterModifier =
rule.value == 'true' || rule.value == '1'
? TEXT_FILTER_MODIFIER_NULL
: TEXT_FILTER_MODIFIER_NOTNULL
break
case FILTER_ASN_GT:
this.textFilterTarget = TEXT_FILTER_TARGET_ASN