diff --git a/config-ui/src/plugins/components/connection-form/connection-form-modal.tsx b/config-ui/src/plugins/components/connection-form/connection-form-modal.tsx index 4eccb09ae80..cf14c156435 100644 --- a/config-ui/src/plugins/components/connection-form/connection-form-modal.tsx +++ b/config-ui/src/plugins/components/connection-form/connection-form-modal.tsx @@ -30,6 +30,11 @@ interface Props { } export const ConnectionFormModal = ({ plugin, connectionId, open, onCancel, onSuccess }: Props) => { + const handleSuccess = (id: ID) => { + onSuccess?.(id); + onCancel(); + }; + return ( onCancel()} > - + ); };