From 2439585fc50a3caa59545d2df6715a590445024e Mon Sep 17 00:00:00 2001 From: Kevin Delemme Date: Tue, 20 Feb 2024 11:59:42 -0500 Subject: [PATCH] fix(slo): embedded SLO selector (#177301) --- .../public/embeddable/slo/alerts/slo_selector.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx b/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx index dd926cc9fc179..e3ef81786da55 100644 --- a/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx +++ b/x-pack/plugins/observability/public/embeddable/slo/alerts/slo_selector.tsx @@ -36,9 +36,9 @@ export function SloSelector({ initialSlos, onSelected, hasError, singleSelection mapSlosToOptions(initialSlos) ); const [searchValue, setSearchValue] = useState(''); - const query = `${searchValue.replaceAll(' ', '*')}*`; + const query = `${searchValue}*`; const { isLoading, data: sloList } = useFetchSloList({ - kqlQuery: `slo.name: ${query} or slo.instanceId: ${query}`, + kqlQuery: `slo.name: (${query}) or slo.instanceId.text: (${query})`, perPage: 100, });