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