Skip to content

Commit

Permalink
fix: important notes dashboard does not break when notes without warn…
Browse files Browse the repository at this point in the history
…ing level exist
  • Loading branch information
TheSlimvReal committed Sep 27, 2022
1 parent 5e07fbc commit 5ae42e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ImportantNotesComponent
this.notes.pipe(first()).subscribe(() => (this.loading = false));
this.notes.pipe(untilDestroyed(this)).subscribe((next) => {
this.notesDataSource.data = next
.filter((note) => this.noteIsRelevant(note))
.filter((note) => note.warningLevel && this.noteIsRelevant(note))
.sort((a, b) => b.warningLevel._ordinal - a.warningLevel._ordinal);
});
}
Expand Down

0 comments on commit 5ae42e8

Please sign in to comment.