[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:
parent
a3a1e9cf9e
commit
4e97fcd776
7 changed files with 18 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue