diff --git a/packages/editor/document-editor/src/ui/components/page-renderer.tsx b/packages/editor/document-editor/src/ui/components/page-renderer.tsx
index 194152dd3..cff043171 100644
--- a/packages/editor/document-editor/src/ui/components/page-renderer.tsx
+++ b/packages/editor/document-editor/src/ui/components/page-renderer.tsx
@@ -18,7 +18,7 @@ export const PageRenderer = (props: IPageRenderer) => {
} = props;
return (
-
+
{documentDetails.title}
diff --git a/packages/editor/document-editor/src/ui/components/summary-popover.tsx b/packages/editor/document-editor/src/ui/components/summary-popover.tsx
index 7c85ed945..46b99d048 100644
--- a/packages/editor/document-editor/src/ui/components/summary-popover.tsx
+++ b/packages/editor/document-editor/src/ui/components/summary-popover.tsx
@@ -44,7 +44,7 @@ export const SummaryPopover: React.FC
= (props) => {
{!sidePeekVisible && (
-
-
+
+
-
-
+
+
{
handleSubmit(updatePage)().finally(() => setIsSubmitting("submitted"));
}, 1500);
+ if (error)
+ return (
+ router.push(`/${workspaceSlug}/projects/${projectId}/pages`),
+ }}
+ />
+ );
+
return (
<>
- {error ? (
- router.push(`/${workspaceSlug}/projects/${projectId}/pages`),
- }}
- />
- ) : pageDetails ? (
+ {pageDetails ? (
{pageDetails.is_locked || pageDetails.archived_at ? (
@@ -267,9 +270,9 @@ const PageDetailsPage: NextPageWithLayout = () => {
) : (
-
-
-
+
+
+
)}
>
);