Skip to content

Commit

Permalink
Move helmet outside page loading
Browse files Browse the repository at this point in the history
  • Loading branch information
clari182 committed Sep 21, 2023
1 parent 5fa833a commit 8f82146
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions site/gatsby-site/src/pages/apps/submitted.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,24 @@ const SubmittedIncidentsPage = ({ ...props }) => {

return (
<>
<AiidHelmet path={props.location.pathname}>
{id ? (
<title>{t('Edit submission')}</title>
) : (
<title>{t('Submitted Incident Report List')}</title>
)}
</AiidHelmet>

{pageLoading ? (
<ListSkeleton />
) : (
<>
{id ? (
<>
<AiidHelmet path={props.location.pathname}>
<title>{t('Edit submission')}</title>
</AiidHelmet>
<SubmissionEdit id={id} />
</>
) : (
<>
<AiidHelmet path={props.location.pathname}>
<title>{t('Submitted Incident Report List')}</title>
</AiidHelmet>
<div className={'titleWrapper'}>
<h1>
<Trans ns="submitted">Submitted Incident Report List</Trans>
Expand Down

0 comments on commit 8f82146

Please sign in to comment.