Commit 98acdb1a authored by deb355529's avatar deb355529 Committed by Oyvind
Browse files

DEICH-5885: deichman.no: added null-check for hasSummary

parent 128699b0
......@@ -60,7 +60,7 @@ class PublicationPage extends React.Component {
render() {
const {
publication,
publication = {},
resourceApi: { error: resourceError },
publicationId
} = this.props;
......@@ -87,7 +87,7 @@ class PublicationPage extends React.Component {
<Head
title={`${publication.mainTitle} - Deichman.no`}
description={
publication.work.hasSummary || "Informasjon om utgivelse"
publication.work?.hasSummary || "Informasjon om utgivelse"
}
ogurl={`https://deichman.no/utgivelse/${publicationId}`}
ogimage={imageObj.medium}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment