Skip to content

Commit

Permalink
Merge pull request #700 from UKHSA-Internal/COVP-173_fix_metrics_docu…
Browse files Browse the repository at this point in the history
…mentation_page

COVP-173 Fix for 'Metrics documentation' page
  • Loading branch information
jaro-m committed Nov 2, 2023
2 parents 0d48510 + 201920f commit 6010651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MetricView/MetricView.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Metrics: ComponentType<*> = ({ data, filter }) => {
<Content>
<Link className={ "govuk-link govuk-link--no-underline govuk-link--no-visited-state govuk-!-font-weight-bold" }
to={ `/metrics/doc/${metric.metric}` }
dangerouslySetInnerHTML={ markedContent(metric.metric_name, filter) }/>
dangerouslySetInnerHTML={ markedContent(metric.metric_name ?? metric.metric, filter) }/>
<HeadingLabels>
{ metric.deprecated ? <Deprecated>DEPRECATED</Deprecated> : null }
<Category>{ metric.category }</Category>
Expand Down

0 comments on commit 6010651

Please sign in to comment.