diff --git a/src/components/Forms/Formik/FormikResourceSelectorDropdown.tsx b/src/components/Forms/Formik/FormikResourceSelectorDropdown.tsx index ca4789ad4..bf8db6ced 100644 --- a/src/components/Forms/Formik/FormikResourceSelectorDropdown.tsx +++ b/src/components/Forms/Formik/FormikResourceSelectorDropdown.tsx @@ -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 }), [