[WEB-1724] fix: initial pages list loading. (#4939)

* [WEB-1724] fix: inital page loading.

* chore: update getPageById action.

* fix: lint error
This commit is contained in:
Prateek Shourya 2024-06-26 14:19:22 +05:30 committed by GitHub
parent a3a1e9cf9e
commit 4e97fcd776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 18 additions and 14 deletions

View file

@ -27,7 +27,7 @@ const PageDetailsPage = observer(() => {
// fetch page details
const { error: pageDetailsError } = useSWR(
pageId ? `PAGE_DETAILS_${pageId}` : null,
pageId ? () => getPageById(pageId.toString()) : null,
pageId ? () => getPageById(workspaceSlug?.toString(), projectId?.toString(), pageId.toString()) : null,
{
revalidateIfStale: false,
revalidateOnFocus: false,