mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor(site): give default error message when description is missing (#7846)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -27,6 +27,7 @@ export const Alert: FC<AlertProps> = ({
|
||||
<Collapse in={open}>
|
||||
<MuiAlert
|
||||
{...alertProps}
|
||||
sx={{ textAlign: "left", ...alertProps.sx }}
|
||||
severity={severity}
|
||||
action={
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user