From 7d98c7c069d65e4e53b70c18246fcef1e6bd11ec Mon Sep 17 00:00:00 2001
From: Philipinho <16838612+Philipinho@users.noreply.github.com>
Date: Sun, 14 Jun 2026 15:31:50 +0100
Subject: [PATCH] fix: base trash list handling
---
.../src/features/page/queries/page-query.ts | 1 +
.../components/trash-page-content-modal.tsx | 14 ++++++++++++-
.../features/page/trash/components/trash.tsx | 20 +++++++++----------
3 files changed, 23 insertions(+), 12 deletions(-)
diff --git a/apps/client/src/features/page/queries/page-query.ts b/apps/client/src/features/page/queries/page-query.ts
index 11ba7f32d..1dc4311be 100644
--- a/apps/client/src/features/page/queries/page-query.ts
+++ b/apps/client/src/features/page/queries/page-query.ts
@@ -193,6 +193,7 @@ export function useRestorePageMutation() {
spaceId: restoredPage.spaceId,
parentPageId: restoredPage.parentPageId,
hasChildren: restoredPage.hasChildren || false,
+ isBase: restoredPage.isBase,
children: [],
};
diff --git a/apps/client/src/features/page/trash/components/trash-page-content-modal.tsx b/apps/client/src/features/page/trash/components/trash-page-content-modal.tsx
index 842c4257c..6d1a2b4eb 100644
--- a/apps/client/src/features/page/trash/components/trash-page-content-modal.tsx
+++ b/apps/client/src/features/page/trash/components/trash-page-content-modal.tsx
@@ -1,12 +1,15 @@
import { Modal, Text, ScrollArea } from "@mantine/core";
+import { IconTable } from "@tabler/icons-react";
import { useTranslation } from "react-i18next";
import ReadonlyPageEditor from "@/features/editor/readonly-page-editor.tsx";
+import { EmptyState } from "@/components/ui/empty-state.tsx";
interface Props {
opened: boolean;
onClose: () => void;
pageTitle: string;
pageContent: any;
+ isBase?: boolean;
}
export default function TrashPageContentModal({
@@ -14,6 +17,7 @@ export default function TrashPageContentModal({
onClose,
pageTitle,
pageContent,
+ isBase,
}: Props) {
const { t } = useTranslation();
const title = pageTitle || t("Untitled");
@@ -32,7 +36,15 @@ export default function TrashPageContentModal({