Attempt to fix error

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface
2023-08-07 12:27:48 +01:00
parent f96c7a7e9d
commit 4b7722d5cd
2 changed files with 1 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ function transformNrcc(input: any): NrccMessage[] | undefined {
for (const item of messages) {
let message: NrccMessage = {
severity: item?.severity,
xhtmlMessage: removeNewlineAndPTag(item?.xhtmlMessage)
xhtmlMessage: removeNewlineAndPTag(item?.xhtmlMessage) || undefined
}
output.push(message)
}