Skip to content

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

misc feedback

x0322057d8a720f5056
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx
index 1d8d631960..21a82d7749 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx
@@ -153,12 +153,12 @@ const WindowsConnectionDetails = ({
<DetailLabel>Port</DetailLabel>
<DetailValue>{connectionDetails.port}</DetailValue>
</Detail>
- <Detail>
- <DetailLabel>AD Resource</DetailLabel>
- <DetailValue>
- {adResource ? adResource.name : <span className="text-muted">None</span>}
- </DetailValue>
- </Detail>
+ {adResource && (
+ <Detail>
+ <DetailLabel>AD Resource</DetailLabel>
+ <DetailValue>{adResource.name}</DetailValue>
+ </Detail>
+ )}
</>
);
};