mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Apply suggestions from code review
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -265,7 +265,7 @@ export class DocumentListViewService {
|
||||
hasPrevious(doc: number) {
|
||||
if (this.documents) {
|
||||
let index = this.documents.findIndex(d => d.id == doc)
|
||||
return !(index == 0 && this.currentPage == 1)
|
||||
return index != -1 && !(index == 0 && this.currentPage == 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user