fix: Do not replace SSR title with 'Untitled', closes #3985

This commit is contained in:
Tom Moor
2022-08-27 20:20:42 +02:00
parent b9f1fde2e3
commit 3cc3cd8cf8

View File

@@ -1,6 +1,5 @@
import { Location } from "history";
import * as React from "react";
import { useTranslation } from "react-i18next";
import CenteredContent from "~/components/CenteredContent";
import PageTitle from "~/components/PageTitle";
import PlaceholderDocument from "~/components/PlaceholderDocument";
@@ -11,12 +10,9 @@ type Props = {
};
export default function Loading({ location }: Props) {
const { t } = useTranslation();
return (
<Container column auto>
<PageTitle
title={location.state ? location.state.title : t("Untitled")}
/>
{location.state?.title && <PageTitle title={location.state.title} />}
<CenteredContent>
<PlaceholderDocument />
</CenteredContent>