refactor(notion-page-preview): update fetchNotionPagePreview to include pageType parameter for improved API request

This commit is contained in:
twwu
2025-09-04 19:02:35 +08:00
parent 771ea54a0b
commit ef64729771
2 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@ const NotionPagePreview = ({
const res = await fetchNotionPagePreview({
workspaceID: currentPage.workspace_id,
pageID: currentPage.page_id,
pageType: currentPage.type,
credentialID: notionCredentialId,
})
setPreviewContent(res.content)