Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/AgreementLookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,21 @@ const AgreementLookup = ({ disabled, id, input: { name, value }, onResourceSelec
<div>
<Link
data-test-agreement-card-name
to={urls.agreementView(resource.id)}
to={urls.agreementView(resource?.id)}
>
{resource.name}
{resource?.name}
</Link>
<Row>
<Col md={4} xs={6}>
<KeyValue
label={<FormattedMessage id="ui-agreements.agreements.startDate" />}
value={resource.startDate ? <FormattedUTCDate value={resource.startDate} /> : <NoValue />}
value={resource?.startDate ? <FormattedUTCDate value={resource.startDate} /> : <NoValue />}
/>
</Col>
<Col md={4} xs={6}>
<KeyValue
label={<FormattedMessage id="ui-agreements.agreements.endDate" />}
value={resource.endDate ? <FormattedUTCDate value={resource.endDate} /> : <NoValue />}
value={resource?.endDate ? <FormattedUTCDate value={resource.endDate} /> : <NoValue />}
/>
</Col>
<Col md={4} xs={12}>
Expand Down
Loading