diff --git a/apps/frontend/src/components/layout/continue.provider.tsx b/apps/frontend/src/components/layout/continue.provider.tsx index 0e5a5660..2602325c 100644 --- a/apps/frontend/src/components/layout/continue.provider.tsx +++ b/apps/frontend/src/components/layout/continue.provider.tsx @@ -32,7 +32,7 @@ export const ContinueProvider: FC = () => { refreshWhenOffline: false, fallbackData: [], }); - const closeModal = useCallback(() => { + const refreshList = useCallback(() => { mutate('/integrations/list'); const url = new URL(window.location.href); url.searchParams.delete('added'); @@ -54,6 +54,7 @@ export const ContinueProvider: FC = () => { return ( p.internalId)} @@ -105,13 +106,22 @@ const ContinueModal: FC<{ added: any; provider: any; integrations: string[]; + refreshList: () => void; }> = (props) => { const modals = useModals(); useEffect(() => { modals.openModal({ title: 'Configure Channel', - children: (close) => , + children: (close) => ( + { + props.refreshList(); + close(); + }} + /> + ), }); }, []);