mirror of
https://github.com/makeplane/plane.git
synced 2026-02-24 04:00:14 +01:00
chore: send page type
This commit is contained in:
@@ -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 />} />
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user