diff --git a/packages/types/src/home.d.ts b/packages/types/src/home.d.ts index 68fcd4d1de0..56089bf46e3 100644 --- a/packages/types/src/home.d.ts +++ b/packages/types/src/home.d.ts @@ -12,9 +12,9 @@ export type TPageEntityData = { id: string; name: string; logo_props: TLogoProps; - project_id: string; + project_id?: string; owned_by: string; - project_identifier: string; + project_identifier?: string; }; export type TProjectEntityData = { diff --git a/web/core/components/home/widgets/recents/index.tsx b/web/core/components/home/widgets/recents/index.tsx index 02d3ae38d4e..8530563de34 100644 --- a/web/core/components/home/widgets/recents/index.tsx +++ b/web/core/components/home/widgets/recents/index.tsx @@ -24,7 +24,6 @@ const filters: { name: TRecentActivityFilterKeys; icon?: React.ReactNode }[] = [ { name: "all item" }, { name: "issue", icon: }, { name: "page", icon: }, - { name: "workspace_page", icon: }, { name: "project", icon: }, ]; diff --git a/web/core/components/home/widgets/recents/page.tsx b/web/core/components/home/widgets/recents/page.tsx index 8cff40588d2..125c424c1ec 100644 --- a/web/core/components/home/widgets/recents/page.tsx +++ b/web/core/components/home/widgets/recents/page.tsx @@ -49,9 +49,11 @@ export const RecentPage = (props: BlockProps) => { )} -
- {pageDetails?.project_identifier} -
+ {pageDetails?.project_identifier && ( +
+ {pageDetails?.project_identifier} +
+ )}
{pageDetails?.name}
{calculateTimeAgo(activity.visited_at)}