chore: send page type

This commit is contained in:
VipinDevelops
2025-12-29 18:17:44 +05:30
parent d7bef6ffe3
commit c2cf2ab994
2 changed files with 2 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ export default function ProjectPageDetailsLayout({ params }: Route.ComponentProp
const { workspaceSlug, projectId } = params;
const { fetchPagesList } = usePageStore(EPageStoreType.PROJECT);
// fetching pages list
useSWR(`PROJECT_PAGES_${projectId}`, () => fetchPagesList(workspaceSlug, projectId));
useSWR(`PROJECT_PAGES_${projectId}`, () => fetchPagesList(workspaceSlug, projectId, "public"));
return (
<>
<AppHeader header={<PageDetailsHeader />} />

View File

@@ -321,6 +321,7 @@ export class ProjectPageStore implements IProjectPageStore {
// Build query parameters
const queries: Record<string, string | number> = {
per_page: PAGES_PER_PAGE,
type: pageType, // Send page type to backend for filtering
};
// Add search query if provided