Skip to content

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

address reviews by claude

x03220559c9960457a5
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx b/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx
index 603f396562..c611effdcc 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx
+++ b/frontend/src/pages/pam/PamAccountAccessPage/RdpContent.tsx
@@ -99,15 +99,6 @@ export const RdpContent = ({ account, projectId, reason }: RdpContentProps) => {
Disconnect
</button>
)}
- {(sessionEnded || error) && (
- <button
- type="button"
- onClick={handleReconnect}
- className="ml-2 text-mineshaft-400 hover:text-green-400"
- >
- Reconnect
- </button>
- )}
</span>
<div className="flex items-center gap-4">
<span>
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts b/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts
index dd32452b37..b267a02502 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts
+++ b/frontend/src/pages/pam/PamAccountAccessPage/useRdpSession.ts
@@ -63,9 +63,14 @@ const ensureRdpBackend = () => {
}
return originalFetch(input, init);
};
- rdpBackendInitialized = initRdpBackend("INFO").finally(() => {
- window.fetch = originalFetch;
- });
+ rdpBackendInitialized = initRdpBackend("INFO")
+ .catch((e) => {
+ rdpBackendInitialized = null;
+ throw e;
+ })
+ .finally(() => {
+ window.fetch = originalFetch;
+ });
}
return rdpBackendInitialized;
};