diff --git a/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx b/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx index 27817f329..aecca9c2a 100644 --- a/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx +++ b/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx @@ -279,7 +279,6 @@ export default function IntegrationList({ let body ={} if(flag){ body = { - force_full: true, integration_info:row?.map((item)=>{ return { integration_type: integration_type, @@ -292,7 +291,6 @@ export default function IntegrationList({ } else{ body = { - force_full: true, integration_info: [ { integration_type: integration_type, @@ -303,6 +301,14 @@ export default function IntegrationList({ ], } } + if(selectedResourceType?.length > 0 && selectedResourceType?.length < resourceTypes?.length){ + // @ts-ignore + body['resource_types'] = selectedResourceType?.map((item:any)=>{ + return { + resource_type: item.value, + } + }) + } axios @@ -313,6 +319,7 @@ export default function IntegrationList({ ...actionLoading, discovery: false, }) + setRunOpen(false) setNotification({ text: `Discovery started`, type: 'success', @@ -687,21 +694,35 @@ export default function IntegrationList({ // @ts-ignore header={'Run Discovery'} footer={ - <> - - - + + } > { + onChange={({ detail }) => { setSelectedResourceType(detail.selectedOptions) }} + tokenLimit={2} placeholder="Select resource type" />