Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Dec 12, 2023
1 parent ec46d28 commit 74dd02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/srm/src/app/result-card/result-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class ResultCardComponent implements OnChanges {
const highlighted = this.card._highlights['situations.name.hebrew'];
if (highlighted.length === this.card?.situations?.length) {
this.card.situations.forEach((s, i) => {
if (!s.__selected && highlighted[i].indexOf('<em>') >= 0) {
if (!s.__selected && highlighted[i]?.indexOf('<em>') >= 0) {
s.name = highlighted[i];
s.__selected = true;
this.selectedSituations.push(s);
Expand All @@ -103,7 +103,7 @@ export class ResultCardComponent implements OnChanges {
const highlighted = this.card._highlights['responses.name.hebrew'];
if (highlighted.length === this.card?.responses?.length) {
this.card.responses.forEach((r, i) => {
if (!r.__selected && highlighted[i].indexOf('<em>') >= 0) {
if (!r.__selected && highlighted[i]?.indexOf('<em>') >= 0) {
r.name = highlighted[i];
r.__selected = true;
this.selectedResponses.push(r);
Expand Down

0 comments on commit 74dd02e

Please sign in to comment.