mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
bugfix
This commit is contained in:
parent
9bbcb9319c
commit
cb3001ac3b
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue