fix: multipart timeline (#3008)

* Update package.json

* Update package.json

* Update package.json

* Update package.json

* fix: multipart timeline

* revert jest command
This commit is contained in:
lohit 2024-09-03 17:29:51 +05:30 committed by GitHub
parent c5c343c543
commit b102898709
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,8 @@ const Timeline = ({ request, response }) => {
}); });
}); });
let requestData = typeof request?.data === "string" ? request?.data : safeStringifyJSON(request?.data, true);
return ( return (
<StyledWrapper className="pb-4 w-full"> <StyledWrapper className="pb-4 w-full">
<div> <div>
@ -31,10 +33,10 @@ const Timeline = ({ request, response }) => {
); );
})} })}
{request.data ? ( {requestData ? (
<pre className="line request"> <pre className="line request">
<span className="arrow">{'>'}</span> data{' '} <span className="arrow">{'>'}</span> data{' '}
<pre className="text-sm flex flex-wrap whitespace-break-spaces">{request.data}</pre> <pre className="text-sm flex flex-wrap whitespace-break-spaces">{requestData}</pre>
</pre> </pre>
) : null} ) : null}
</div> </div>