Apply suggestions from code review

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
GruberViktorandshamoon authored and GitHub committed 2022-03-11 20:16:53 +01:00
1 parent 1259911275
commit 6cbbd0c515
2 files changed
+6 -6

No files matched your search

@@ -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)
}
}