Skip to content

Commit b7172fe

Browse files
committed
chore: fix status color for redirects on audit page
1 parent 691495d commit b7172fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

site/src/components/AuditLogRow/AuditLogRow.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ import { AuditLogDescription } from "./AuditLogDescription"
1919
import { determineGroupDiff } from "./auditUtils"
2020

2121
const httpStatusColor = (httpStatus: number): PaletteIndex => {
22+
// redirects are successful
23+
if (httpStatus === 307) {
24+
return "success"
25+
}
26+
2227
if (httpStatus >= 300 && httpStatus < 500) {
2328
return "warning"
2429
}

0 commit comments

Comments
 (0)