mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-03-31 13:35:08 -05:00
Fix: only parse custom field queries when valid (#9384)
This commit is contained in:
parent
4ef5fbfb6e
commit
db5e54c6e5
@ -872,7 +872,7 @@ export class FilterEditorComponent
|
||||
let queries = this.customFieldQueriesModel.queries.map((query) =>
|
||||
query.serialize()
|
||||
)
|
||||
if (queries.length > 0) {
|
||||
if (queries.length > 0 && this.customFieldQueriesModel.isValid()) {
|
||||
filterRules.push({
|
||||
rule_type: FILTER_CUSTOM_FIELDS_QUERY,
|
||||
value: JSON.stringify(queries[0]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user