Skip to content

Commit

Permalink
fix: resource selector, search across all agents
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Nov 25, 2024
1 parent 2f44164 commit 73a42ea
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions src/components/Forms/Formik/FormikResourceSelectorDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,31 @@ export default function FormikResourceSelectorDropdown({
const resourceSelector: SearchResourcesRequest = useMemo(
() => ({
checks: checkResourceSelector
? [...checkResourceSelector.map((r) => ({ ...r, search: searchText }))]
? [
...checkResourceSelector.map((r) => ({
...r,
agent: "all",
search: searchText
}))
]
: undefined,
components: componentResourceSelector
? [
...componentResourceSelector.map((r) => ({
...r,
search: searchText
}))
]
...componentResourceSelector.map((r) => ({
...r,
agent: "all",
search: searchText
}))
]
: undefined,
configs: configResourceSelector
? [
...configResourceSelector.map((r) => ({
...r,
search: searchText
}))
]
...configResourceSelector.map((r) => ({
...r,
agent: "all",
search: searchText
}))
]
: undefined
}),
[
Expand Down

0 comments on commit 73a42ea

Please sign in to comment.