diff --git a/ui/src/components/ErrorPage.tsx b/ui/src/components/ErrorPage.tsx index a903e558e..d8164162a 100644 --- a/ui/src/components/ErrorPage.tsx +++ b/ui/src/components/ErrorPage.tsx @@ -20,8 +20,7 @@ type PolicyEvaluationTraceDetailsProps = { trace: PolicyEvaluationTrace; } & ListItemProps; const PolicyEvaluationTraceDetails: FC = ({ - trace, - ...props + trace }) => { return ( @@ -52,14 +51,16 @@ export type ErrorPageProps = { export const ErrorPage: FC = ({ data }) => { const traces = data?.policyEvaluationTraces?.filter((trace) => !!trace.id) || []; + const status = data?.status || 500; + return ( - + = 300 ? "error" : "success"}> - {data?.status || 500}{" "} + {status}{" "} {data?.statusText || "Internal Server Error"} {data?.description ? (