From 646db730613e163f81d4a2e6783437df2826235c Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 28 Apr 2023 21:56:40 -0700 Subject: [PATCH] Update document-notes.component.ts --- .../app/components/document-notes/document-notes.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-notes/document-notes.component.ts b/src-ui/src/app/components/document-notes/document-notes.component.ts index c8bb3cc2b..c005b917c 100644 --- a/src-ui/src/app/components/document-notes/document-notes.component.ts +++ b/src-ui/src/app/components/document-notes/document-notes.component.ts @@ -86,7 +86,7 @@ export class DocumentNotesComponent extends ComponentWithPermissions { displayName(note: PaperlessDocumentNote): string { if (!note.user) return '' - const user = this.users.find((u) => u.id === note.user) + const user = this.users?.find((u) => u.id === note.user) if (!user) return '' const nameComponents = [] if (user.first_name) nameComponents.unshift(user.first_name)