fix: notion binding (#2572)

This commit is contained in:
zxhlyh 2024-02-27 11:59:54 +08:00 committed by GitHub
parent 5b953c1ef2
commit 0c0e96c55f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,