Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3da33d2

Browse files
authored
chore: fix status color for redirects on audit page (#6096)
1 parent e17ed9f commit 3da33d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

site/src/components/AuditLogRow/AuditLogRow.tsx

+5
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)