Skip to content

Commit 57fe075

Browse files
fix(agent builder): allow plugin selection when added to agent (elastic#262460)
Closes elastic/search-team#13861 ## Summary Fixes bug on agent plugin screen that didn't auto-select the plugin on add. https://github.com/user-attachments/assets/6f827a87-26e7-42d8-8c31-018d065dc68f
1 parent 4aefe9c commit 57fe075

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • x-pack/platform/plugins/shared/agent_builder/public/application/components/agents/plugins

x-pack/platform/plugins/shared/agent_builder/public/application/components/agents/plugins/agent_plugins.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,10 @@ export const AgentPlugins: React.FC = () => {
374374
)}
375375

376376
{isInstallFlyoutOpen && (
377-
<InstallPluginFlyout onClose={closeInstallFlyout} onPluginInstalled={handleAddPlugin} />
377+
<InstallPluginFlyout
378+
onClose={closeInstallFlyout}
379+
onPluginInstalled={(plugin) => handleAddPlugin(plugin, { selectOnSuccess: true })}
380+
/>
378381
)}
379382
</PageWrapper>
380383
);

0 commit comments

Comments
 (0)