From 7f0ca62386dabe613e083ae17f2c7a884932328d Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 25 Mar 2024 17:56:20 +0800 Subject: [PATCH] fix some state for notion --- packages/web/pages/settings/integrations.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/pages/settings/integrations.tsx b/packages/web/pages/settings/integrations.tsx index de4250f0f..368f479a1 100644 --- a/packages/web/pages/settings/integrations.tsx +++ b/packages/web/pages/settings/integrations.tsx @@ -159,7 +159,7 @@ export default function Integrations(): JSX.Element { { duration: 5000 } ) } finally { - router.replace('/settings/integrations') + router.push('/settings/integrations') } } @@ -183,7 +183,7 @@ export default function Integrations(): JSX.Element { { duration: 5000 } ) - router.replace('/settings/integrations') + router.push('/settings/integrations') } } @@ -200,7 +200,7 @@ export default function Integrations(): JSX.Element { if (router.query.code && !getIntegration('NOTION')) { connectWithNotion() } - }, [importFromIntegration, getIntegration, revalidate, router]) + }, [importFromIntegration, getIntegration, router]) useEffect(() => { const pocket = getIntegration('POCKET')