Skip to content

Commit

Permalink
fix(slo): embedded SLO selector (elastic#177301)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme authored and fkanout committed Mar 4, 2024
1 parent 3583692 commit 2439585
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export function SloSelector({ initialSlos, onSelected, hasError, singleSelection
mapSlosToOptions(initialSlos)
);
const [searchValue, setSearchValue] = useState<string>('');
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,
});

Expand Down

0 comments on commit 2439585

Please sign in to comment.