fix(plugins/pagerduty): properly type optional variable

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
This commit is contained in:
Alec Jacobs
2022-06-17 08:39:59 -07:00
parent 8ac5b73da2
commit 7889629264
@@ -54,7 +54,7 @@ export const ChangeEventListItem = ({ changeEvent }: Props) => {
const changedAt = DateTime.local()
.minus(Duration.fromMillis(duration))
.toRelative({ locale: 'en' });
let externalLinkElem = null;
let externalLinkElem: JSX.Element | undefined;
if (changeEvent.links.length > 0) {
const text: string = changeEvent.links[0].text;
externalLinkElem = (