Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: notion binding (#2572)

zxhlyh0c0e96c55fde
diff --git a/web/hooks/use-pay.tsx b/web/hooks/use-pay.tsx
index 6ec47959404..cd43e8dd99c 100644
--- a/web/hooks/use-pay.tsx
+++ b/web/hooks/use-pay.tsx
@@ -122,7 +122,7 @@ export const useCheckNotion = () => {
const notionCode = searchParams.get('code')
const notionError = searchParams.get('error')
const { data } = useSWR(
- canBinding
+ (canBinding && notionCode)
? `/oauth/data-source/binding/notion?code=${notionCode}`
: null,
fetchDataSourceNotionBinding,