Skip to content

Commit

Permalink
Ignore null when setting from encoded criterion
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Sep 24, 2023
1 parent 1595729 commit fa4f8ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/v2.5/src/models/list-filter/criteria/criterion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export abstract class Criterion<V extends CriterionValue> {
}

public setFromEncodedCriterion(encodedCriterion: IEncodedCriterion<V>) {
if (encodedCriterion.value !== undefined) {
if (
encodedCriterion.value !== undefined &&
encodedCriterion.value !== null
) {
this.value = encodedCriterion.value;
}
this.modifier = encodedCriterion.modifier;
Expand Down

0 comments on commit fa4f8ca

Please sign in to comment.