mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 00:21:11 +10:00
editor improvements
* add callout, youtube embed, image, video, table, detail, math * fix attachments module * other fixes
This commit is contained in:
@ -3,6 +3,7 @@ import { useEffect } from "react";
|
||||
import { usePageQuery } from "@/features/page/queries/page-query";
|
||||
import { buildPageUrl } from "@/features/page/page.utils.ts";
|
||||
import { extractPageSlugId } from "@/lib";
|
||||
import { Error404 } from "@/components/ui/error-404.tsx";
|
||||
|
||||
export default function PageRedirect() {
|
||||
const { pageSlug } = useParams();
|
||||
@ -20,6 +21,10 @@ export default function PageRedirect() {
|
||||
}
|
||||
}, [page]);
|
||||
|
||||
if (isError) {
|
||||
return <Error404 />;
|
||||
}
|
||||
|
||||
if (pageIsLoading) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ export default function Page() {
|
||||
page && (
|
||||
<div>
|
||||
<Helmet>
|
||||
<title>{`${page?.icon || ""} ${page.title || "untitled"}`}</title>
|
||||
<title>{`${page?.icon || ""} ${page?.title || "untitled"}`}</title>
|
||||
</Helmet>
|
||||
|
||||
<PageHeader
|
||||
|
||||
Reference in New Issue
Block a user