Skip to content

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

Display body

Fang-Pen Lin4475457d4fda
diff --git a/frontend/src/hooks/api/pam/types/index.ts b/frontend/src/hooks/api/pam/types/index.ts
index 56f66c6f10..255aaf834c 100644
--- a/frontend/src/hooks/api/pam/types/index.ts
+++ b/frontend/src/hooks/api/pam/types/index.ts
@@ -51,6 +51,7 @@ export type THttpRequestEvent = {
headers: Record<string, string[]>;
method: string;
url: string;
+ body?: string;
};
export type THttpResponseEvent = {
@@ -59,6 +60,7 @@ export type THttpResponseEvent = {
eventType: "response";
headers: Record<string, string[]>;
status: string;
+ body?: string;
};
export type THttpEvent = THttpRequestEvent | THttpResponseEvent;
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx
index fd024e8795..3ecd7cf4a9 100644
--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx
+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx
@@ -222,7 +222,7 @@ export const HttpEventView = ({ events }: Props) => {
</div>
)}
- {isRequest && event.body && (
+ {event.body && (
<div className="mt-2 pt-2 border-t border-mineshaft-700">
<button
type="button"