Fix: only parse custom field queries when valid (#9384)

This commit is contained in:
shamoon 2025-03-12 17:06:02 -07:00 committed by GitHub
parent 4ef5fbfb6e
commit db5e54c6e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]),