mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Fix: handle document notes user format api change (#5751)
This commit is contained in:
@@ -84,7 +84,8 @@ export class DocumentNotesComponent extends ComponentWithPermissions {
|
||||
|
||||
displayName(note: DocumentNote): string {
|
||||
if (!note.user) return ''
|
||||
const user = this.users?.find((u) => u.id === note.user)
|
||||
const user_id = typeof note.user === 'number' ? note.user : note.user.id
|
||||
const user = this.users?.find((u) => u.id === user_id)
|
||||
if (!user) return ''
|
||||
const nameComponents = []
|
||||
if (user.first_name) nameComponents.push(user.first_name)
|
||||
|
Reference in New Issue
Block a user