Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Greptile review fix

x0322059bc87f5ecebd
diff --git a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
index 30c2739e29..258af14b97 100644
--- a/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/AuditLogStreamTab/AuditLogStreamForm/CustomProviderAuditLogStreamForm.tsx
@@ -102,6 +102,7 @@ export const CustomProviderAuditLogStreamForm = ({ auditLogStream, onSubmit }: P
onFocus={(e) => {
if (
auditLogStream &&
+ auditLogStream.credentials.headers[i] &&
auditLogStream.credentials.headers[i].value === "******" &&
field.value === "******"
) {
@@ -112,6 +113,7 @@ export const CustomProviderAuditLogStreamForm = ({ auditLogStream, onSubmit }: P
onBlur={(e) => {
if (
auditLogStream &&
+ auditLogStream.credentials.headers[i] &&
auditLogStream.credentials.headers[i].value === "******" &&
field.value === ""
) {