diff --git a/packages/console/src/pages/ConnectorDetails/index.tsx b/packages/console/src/pages/ConnectorDetails/index.tsx index b30332dd0..2f4660e0b 100644 --- a/packages/console/src/pages/ConnectorDetails/index.tsx +++ b/packages/console/src/pages/ConnectorDetails/index.tsx @@ -156,8 +156,9 @@ const ConnectorDetails = () => { { + onClose={(connectorId?: string) => { setIsSetupOpen(false); + navigate(`/connectors/${connectorId ?? ''}`); }} /> diff --git a/packages/console/src/pages/Connectors/components/CreateForm/index.tsx b/packages/console/src/pages/Connectors/components/CreateForm/index.tsx index 65504b768..e7a5285b6 100644 --- a/packages/console/src/pages/Connectors/components/CreateForm/index.tsx +++ b/packages/console/src/pages/Connectors/components/CreateForm/index.tsx @@ -16,7 +16,7 @@ import * as styles from './index.module.scss'; type Props = { isOpen: boolean; type?: ConnectorType; - onClose?: () => void; + onClose?: (connectorId?: string) => void; }; const CreateForm = ({ onClose, isOpen: isFormOpen, type }: Props) => { @@ -73,7 +73,7 @@ const CreateForm = ({ onClose, isOpen: isFormOpen, type }: Props) => { const closeModal = () => { setIsGetStartedModalOpen(false); - onClose?.(); + onClose?.(activeConnectorId); }; return (