mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Update document-list-view.service.ts
This commit is contained in:
parent
ee2580c5f3
commit
f2b4a7f784
@ -307,9 +307,11 @@ export class DocumentListViewService {
|
|||||||
activeListViewState.currentPage = 1
|
activeListViewState.currentPage = 1
|
||||||
this.reload()
|
this.reload()
|
||||||
} else if (
|
} else if (
|
||||||
activeListViewState.sortField.indexOf('custom_field') === 0 && this.settings.allDisplayFields.find(
|
activeListViewState.sortField.indexOf('custom_field') === 0 &&
|
||||||
|
this.settings.allDisplayFields.find(
|
||||||
(f) => f.id === activeListViewState.sortField
|
(f) => f.id === activeListViewState.sortField
|
||||||
) === undefined) {
|
) === undefined
|
||||||
|
) {
|
||||||
// e.g. field was deleted
|
// e.g. field was deleted
|
||||||
this.sortField = 'created'
|
this.sortField = 'created'
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user