Fix title getting lost due to multiple callbacks firing. Closes #2351

This commit is contained in:
Gabe Kangas
2022-12-25 16:03:54 -08:00
parent a7da69b713
commit d4ffe02645
2 changed files with 34 additions and 28 deletions

View File

@@ -71,7 +71,7 @@ export const Main: FC = () => {
{isProduction ? (
<Head>
{name ? <title>{name}</title> : <title>{`{{.Name}}`}</title>}
{name ? <title>{name}</title> : <title>{'{{.Name}}'}</title>}
<meta name="description" content="{{.Summary}}" />
<meta property="og:title" content="{{.Name}}" />
@@ -108,7 +108,7 @@ export const Main: FC = () => {
)}
<ClientConfigStore />
<TitleNotifier />
<TitleNotifier name={name} />
<Theme />
<Layout ref={layoutRef} style={{ minHeight: '100vh' }}>
<Header name={title || name} chatAvailable={isChatAvailable} chatDisabled={chatDisabled} />