feat: [AH-885]: fix issue with showing request and response body of webhook execution (#3448)

* feat: [AH-885]: fix issue with showing request and response body of webhook execution
This commit is contained in:
Shivanand Sonnad 2025-02-18 11:58:32 +00:00 committed by Harness
parent 06c48f3d3d
commit b5e78f3300
3 changed files with 8 additions and 3 deletions

View File

@ -16,4 +16,5 @@
/* eslint-disable */
// This is an auto-generated file
export declare const drawerContainer: string
export declare const tabsContainer: string

View File

@ -110,7 +110,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
</RbacButton>
</Layout.Horizontal>
}>
<Container>
<Container className={css.drawerContainer}>
<Layout.Vertical padding="large" spacing="medium">
<Layout.Horizontal spacing="small" flex={{ alignItems: 'center', justifyContent: 'flex-start' }}>
<Text font={{ variation: FontVariation.CARD_TITLE }}>
@ -166,7 +166,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
<CommandBlock
darkmode
ignoreWhiteSpaces={false}
commandSnippet={prettifyManifestJSON(data?.request ?? {})}
commandSnippet={prettifyManifestJSON(data?.request?.body ?? {})}
/>
}
/>
@ -177,7 +177,7 @@ export default function WebhookExecutionDetailsDrawer(props: WebhookExecutionDet
<CommandBlock
darkmode
ignoreWhiteSpaces={false}
commandSnippet={prettifyManifestJSON(data?.response ?? {})}
commandSnippet={prettifyManifestJSON(data?.response?.body ?? {})}
/>
}
/>