diff --git a/frontend/src/hooks/api/pam/types/index.ts b/frontend/src/hooks/api/pam/types/index.ts index 56f66c6f1..255aaf834 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; method: string; url: string; + body?: string; }; export type THttpResponseEvent = { @@ -59,6 +60,7 @@ export type THttpResponseEvent = { eventType: "response"; headers: Record; 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 fd024e879..3ecd7cf4a 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) => { )} - {isRequest && event.body && ( + {event.body && (