Skip to content

Commit 43e8156

Browse files
committed
fix(monitors): error on empty state
1 parent 9bc11bc commit 43e8156

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testgen/ui/views/monitors_dashboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def render(
101101
JobSchedule.kwargs["test_suite_id"].astext == str(monitor_suite_id),
102102
)
103103

104-
anomaly_type_filter = [t for t in anomaly_type_filter.split(",") if t in ANOMALY_TYPE_FILTERS] if anomaly_type_filter else []
104+
anomaly_type_filter = [t for t in anomaly_type_filter.split(",") if t in ANOMALY_TYPE_FILTERS] if anomaly_type_filter else None
105105
if sort_field and sort_field not in ALLOWED_SORT_FIELDS:
106106
sort_field = None
107107

@@ -148,7 +148,7 @@ def render(
148148
"filters": {
149149
"table_group_id": table_group_id,
150150
"table_name_filter": table_name_filter,
151-
"anomaly_type_filter": list(anomaly_type_filter),
151+
"anomaly_type_filter": list(anomaly_type_filter) if anomaly_type_filter else None,
152152
},
153153
"sort": {
154154
"sort_field": sort_field,

0 commit comments

Comments
 (0)