From fa4f8ca5b8178b7077d52145d7b0b18e3a9b20ed Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 25 Sep 2023 09:31:21 +1000 Subject: [PATCH] Ignore null when setting from encoded criterion --- ui/v2.5/src/models/list-filter/criteria/criterion.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/v2.5/src/models/list-filter/criteria/criterion.ts b/ui/v2.5/src/models/list-filter/criteria/criterion.ts index 6b2b79ac2e1..c6bc8a4c5f8 100644 --- a/ui/v2.5/src/models/list-filter/criteria/criterion.ts +++ b/ui/v2.5/src/models/list-filter/criteria/criterion.ts @@ -143,7 +143,10 @@ export abstract class Criterion { } public setFromEncodedCriterion(encodedCriterion: IEncodedCriterion) { - if (encodedCriterion.value !== undefined) { + if ( + encodedCriterion.value !== undefined && + encodedCriterion.value !== null + ) { this.value = encodedCriterion.value; } this.modifier = encodedCriterion.modifier;