Skip to content

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

greptile review fix

x032205777b67555bb4
diff --git a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/PostgresResourceForm.tsx b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/PostgresResourceForm.tsx
index 427fff40b6..20ac710c3f 100644
--- a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/PostgresResourceForm.tsx
+++ b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/PostgresResourceForm.tsx
@@ -34,10 +34,12 @@ export const PostgresResourceForm = ({ resource, onSubmit }: Props) => {
defaultValues: resource
? {
...resource,
- rotationAccountCredentials: {
- ...resource.rotationAccountCredentials,
- password: "******"
- }
+ rotationAccountCredentials: resource.rotationAccountCredentials
+ ? {
+ ...resource.rotationAccountCredentials,
+ password: "******"
+ }
+ : resource.rotationAccountCredentials
}
: {
resourceType: PamResourceType.Postgres,