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

This commit is contained in:
shamoon authored and GitHub committed 2025-03-12 17:06:02 -07:00
1 parent 4ef5fbfb6e
commit db5e54c6e5
1 file changed
+1 -1
@@ -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]),