mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
fixed an issue with the settings not saving in case no saved views are present
This commit is contained in:
parent
b13ec571f8
commit
0e78f32009
2 changed files with 17 additions and 7 deletions
|
|
@ -116,13 +116,13 @@ export class DocumentListViewService {
|
|||
set filterRules(filterRules: FilterRule[]) {
|
||||
//we're going to clone the filterRules object, since we don't
|
||||
//want changes in the filter editor to propagate into here right away.
|
||||
this.view.filter_rules = cloneFilterRules(filterRules)
|
||||
this.view.filter_rules = filterRules
|
||||
this.reload()
|
||||
this.saveDocumentListView()
|
||||
}
|
||||
|
||||
get filterRules(): FilterRule[] {
|
||||
return cloneFilterRules(this.view.filter_rules)
|
||||
return this.view.filter_rules
|
||||
}
|
||||
|
||||
set sortField(field: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue