Skip to content

Commit b821aba

Browse files
committed
Handle ERROR_GROUP in alertTypeTitle to prevent alerts page crash
1 parent e890257 commit b821aba

File tree

1 file changed

+2
-0
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts

1 file changed

+2
-0
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts/route.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,8 @@ export function alertTypeTitle(alertType: ProjectAlertType): string {
567567
return "Deployment failure";
568568
case "DEPLOYMENT_SUCCESS":
569569
return "Deployment success";
570+
case "ERROR_GROUP":
571+
return "Error group";
570572
default: {
571573
throw new Error(`Unknown alertType: ${alertType}`);
572574
}

0 commit comments

Comments
 (0)