chore: do not render post data if there is none (#31008)

Fixes https://github.com/microsoft/playwright/issues/30992
This commit is contained in:
Pavel Feldman 2024-05-24 09:27:49 -07:00 committed by GitHub
parent 9884c851ff
commit bff1e41add
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,8 @@ const RequestTab: React.FunctionComponent<{
} else {
setRequestBody({ text: formatBody(resource.request.postData.text, requestContentType), language });
}
} else {
setRequestBody(null);
}
};
readResources();