mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-16 06:46:12 +00:00
Fix the status code in the summary section
This commit is contained in:
@@ -57,8 +57,8 @@ const HarEntrySummary: React.FC<any> = ({har}) => {
|
|||||||
const {response, request} = JSON.parse(entries[0].entry);
|
const {response, request} = JSON.parse(entries[0].entry);
|
||||||
|
|
||||||
return <div className={classes.entrySummary}>
|
return <div className={classes.entrySummary}>
|
||||||
{response?.payload && "status" in response.payload && <div style={{marginRight: 8}}>
|
{response?.payload.details && "status" in response.payload.details && <div style={{marginRight: 8}}>
|
||||||
<StatusCode statusCode={response.payload.status}/>
|
<StatusCode statusCode={response.payload.details.status}/>
|
||||||
</div>}
|
</div>}
|
||||||
<div style={{flexGrow: 1, overflow: 'hidden'}}>
|
<div style={{flexGrow: 1, overflow: 'hidden'}}>
|
||||||
<EndpointPath method={request?.payload.method} path={request?.payload.url}/>
|
<EndpointPath method={request?.payload.method} path={request?.payload.url}/>
|
||||||
|
Reference in New Issue
Block a user