mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
bugfix
This commit is contained in:
parent
9bbcb9319c
commit
cb3001ac3b
@ -111,7 +111,8 @@ export class DocumentListViewService {
|
|||||||
this.isReloading = false
|
this.isReloading = false
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
if (error.error['detail'] == 'Invalid page.') {
|
if (this.currentPage != 1 && error.status == 404) {
|
||||||
|
// this happens when applying a filter: the current page might not be available anymore due to the reduced result set.
|
||||||
this.currentPage = 1
|
this.currentPage = 1
|
||||||
this.reload()
|
this.reload()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user