request header is not displayed if it is undefined

This commit is contained in:
Vladimir Khvan 2023-05-17 14:07:34 +05:00
parent f13cc530cd
commit b83346461f

View File

@ -35,7 +35,7 @@ export const RequestDetails = ({ webhookDetails }) => {
<Text as="h3" fontWeight={600} style={{ marginBottom: "4px" }}>
Request post header
</Text>
{webhookDetails.requestHeaders === "" ? (
{!webhookDetails.requestHeaders ? (
<Textarea isDisabled />
) : (
<Textarea