Merge pull request #14948 from backstage/grantila/fix-alert-display-crash-issue

Make AlertDisplay not crash on undefined error message
This commit is contained in:
Johan Haals
2022-11-30 14:58:27 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Made AlertDisplay not crash on undefined messages
@@ -83,7 +83,7 @@ export function AlertDisplay(props: AlertDisplayProps) {
severity={firstMessage.severity}
>
<span>
{firstMessage.message.toString()}
{String(firstMessage.message)}
{messages.length > 1 && (
<em>{` (${messages.length - 1} older ${pluralize(
'message',