mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 09:37:04 +01:00
Fix: only parse custom field queries when valid (#9384)
This commit is contained in:
parent
4ef5fbfb6e
commit
db5e54c6e5
1 changed files with 1 additions and 1 deletions
|
|
@ -872,7 +872,7 @@ export class FilterEditorComponent
|
||||||
let queries = this.customFieldQueriesModel.queries.map((query) =>
|
let queries = this.customFieldQueriesModel.queries.map((query) =>
|
||||||
query.serialize()
|
query.serialize()
|
||||||
)
|
)
|
||||||
if (queries.length > 0) {
|
if (queries.length > 0 && this.customFieldQueriesModel.isValid()) {
|
||||||
filterRules.push({
|
filterRules.push({
|
||||||
rule_type: FILTER_CUSTOM_FIELDS_QUERY,
|
rule_type: FILTER_CUSTOM_FIELDS_QUERY,
|
||||||
value: JSON.stringify(queries[0]),
|
value: JSON.stringify(queries[0]),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue