diff --git a/src/app/child-dev-project/notes/dashboard-widgets/important-notes/important-notes.component.ts b/src/app/child-dev-project/notes/dashboard-widgets/important-notes/important-notes.component.ts index c862692da2..a931f2edfe 100644 --- a/src/app/child-dev-project/notes/dashboard-widgets/important-notes/important-notes.component.ts +++ b/src/app/child-dev-project/notes/dashboard-widgets/important-notes/important-notes.component.ts @@ -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); }); }