Skip to content

Commit

Permalink
fix: don't load previous condition if now criteria is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
torbrenner committed Feb 9, 2024
1 parent ce078c9 commit 7159f76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/lib/components/result-renderer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export class ResultRendererComponent implements OnInit {
this.currentCondition = formerValue;
} else {
let criteria = this.catalogueService.getCriteria((this.resultRenderer.results[0].subset) ? this.resultRenderer.results[0].subset?.toLowerCase() : this.resultRenderer.results[0].key.toLowerCase())
if (criteria == undefined) return
this.currentCondition = new Condition(
criteria.key,
criteria.allowedConditionTypes[0],
Expand Down

0 comments on commit 7159f76

Please sign in to comment.