diff --git a/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js b/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js
index aeba867f4..007d398c0 100644
--- a/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js
+++ b/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js
@@ -15,9 +15,9 @@ import StyledWrapper from './StyledWrapper';
const ResponsePane = ({ rightPaneWidth, item, collection }) => {
const [selectedTab, setSelectedTab] = useState('response');
- const { requestSent, responseReceived, testResults } = item;
+ const { requestSent, responseReceived, testResults, assertionResults } = item;
- const headers = get(item, 'responseReceived.headers', {});
+ const headers = get(item, 'responseReceived.headers', []);
const status = get(item, 'responseReceived.status', 0);
const size = get(item, 'responseReceived.size', 0);
const duration = get(item, 'responseReceived.duration', 0);
@@ -47,7 +47,7 @@ const ResponsePane = ({ rightPaneWidth, item, collection }) => {
return ;
}
case 'tests': {
- return ;
+ return ;
}
default: {
@@ -70,12 +70,13 @@ const ResponsePane = ({ rightPaneWidth, item, collection }) => {
selectTab('headers')}>
Headers
+ {headers?.length > 0 && {headers.length}}
selectTab('timeline')}>
Timeline
selectTab('tests')}>
-
+
diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js b/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js
index f464e5130..ae2df4a0b 100644
--- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js
+++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js
@@ -1333,29 +1333,29 @@ export const collectionsSlice = createSlice({
}
if (type === 'request-sent') {
- const item = collection.runnerResult.items.find((i) => i.uid === request.uid && i.status === 'queued');
+ const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
item.status = 'running';
item.requestSent = action.payload.requestSent;
}
if (type === 'response-received') {
- const item = collection.runnerResult.items.find((i) => i.uid === request.uid && i.status === 'running');
+ const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
item.status = 'completed';
item.responseReceived = action.payload.responseReceived;
}
if (type === 'test-results') {
- const item = collection.runnerResult.items.find((i) => i.uid === request.uid && i.status === 'running');
+ const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
item.testResults = action.payload.testResults;
}
if (type === 'assertion-results') {
- const item = collection.runnerResult.items.find((i) => i.uid === request.uid && i.status === 'running');
+ const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
item.assertionResults = action.payload.assertionResults;
}
if (type === 'error') {
- const item = collection.runnerResult.items.find((i) => i.uid === request.uid && i.status === 'running');
+ const item = collection.runnerResult.items.find((i) => i.uid === request.uid);
item.error = action.payload.error;
item.responseReceived = action.payload.responseReceived;
item.status = 'error';