Commit 01fd36c3 authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Avoid crash due to missing creationPeriod.text in Info

parent 86fc90bf
Pipeline #899 canceled with stage
......@@ -27,7 +27,9 @@ export default function Info(props) {
<Card.Subtitle className="mb-3 text-muted">
{node.referenceCode} ({node.level})
</Card.Subtitle>
<Card.Subtitle className="mb-2 text-muted">{node.creationPeriod.text}</Card.Subtitle>
{node.creationPeriod?.text && (
<Card.Subtitle className="mb-2 text-muted">{node.creationPeriod.text}</Card.Subtitle>
)}
{node.withinInfo && (
<Card.Text style={{ whiteSpace: 'pre-wrap' }}>{node.withinInfo}</Card.Text>
)}
......
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