mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Update document-notes.component.ts
This commit is contained in:
		
							parent
							
								
									e6df581909
								
							
						
					
					
						commit
						646db73061
					
				@ -86,7 +86,7 @@ export class DocumentNotesComponent extends ComponentWithPermissions {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  displayName(note: PaperlessDocumentNote): string {
 | 
					  displayName(note: PaperlessDocumentNote): string {
 | 
				
			||||||
    if (!note.user) return ''
 | 
					    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 ''
 | 
					    if (!user) return ''
 | 
				
			||||||
    const nameComponents = []
 | 
					    const nameComponents = []
 | 
				
			||||||
    if (user.first_name) nameComponents.unshift(user.first_name)
 | 
					    if (user.first_name) nameComponents.unshift(user.first_name)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user