Unverified Commit 0c0e96c5 authored by zxhlyh's avatar zxhlyh Committed by GitHub

fix: notion binding (#2572)

parent 5b953c1e
...@@ -122,7 +122,7 @@ export const useCheckNotion = () => { ...@@ -122,7 +122,7 @@ export const useCheckNotion = () => {
const notionCode = searchParams.get('code') const notionCode = searchParams.get('code')
const notionError = searchParams.get('error') const notionError = searchParams.get('error')
const { data } = useSWR( const { data } = useSWR(
canBinding (canBinding && notionCode)
? `/oauth/data-source/binding/notion?code=${notionCode}` ? `/oauth/data-source/binding/notion?code=${notionCode}`
: null, : null,
fetchDataSourceNotionBinding, fetchDataSourceNotionBinding,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment