refactor(site): give default error message when description is missing (#7846)

This commit is contained in:
Bruno Quaresma
2023-06-05 17:43:24 -03:00
committed by GitHub
parent 7ec16cf779
commit b9e3226612
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -90,5 +90,5 @@ export const getErrorDetail = (
isApiError(error)
? error.response.data.detail
: error instanceof Error
? error.stack
? `Please check the developer console for more details.`
: null
+1
View File
@@ -27,6 +27,7 @@ export const Alert: FC<AlertProps> = ({
<Collapse in={open}>
<MuiAlert
{...alertProps}
sx={{ textAlign: "left", ...alertProps.sx }}
severity={severity}
action={
<>