From 1ad9d61b987d0013f712830874dbea8276977634 Mon Sep 17 00:00:00 2001 From: Andrey Oleynik Date: Tue, 4 Jun 2024 14:51:02 +0300 Subject: [PATCH] conditionally enable searching for alert groups via env var (#4287) # What this PR does re-enables the search for alert groups ## Which issue(s) this PR closes Closes #2232 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --------- Co-authored-by: Joey Orlando Co-authored-by: Joey Orlando --- src/models/alertgroup/alertgroup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/alertgroup/alertgroup.ts b/src/models/alertgroup/alertgroup.ts index 8241213a50..f3c9397202 100644 --- a/src/models/alertgroup/alertgroup.ts +++ b/src/models/alertgroup/alertgroup.ts @@ -65,7 +65,7 @@ export class AlertGroupStore { params: { query: { ...incidentFilters, - search, + search: incidentFilters?.search || search, perpage: this.alertsSearchResult?.page_size, cursor: this.incidentsCursor, is_root: true,