From 55c52971d6c34fc6abd7839ac4f5fc036916a04a Mon Sep 17 00:00:00 2001 From: Martin Sefcik Date: Fri, 20 Oct 2023 14:34:04 +0200 Subject: [PATCH] bug(#699): fixed crashing app on clicking on request result in runner --- .../src/components/ResponsePane/QueryResult/index.js | 4 ++-- packages/bruno-app/src/components/ResponsePane/index.js | 1 + .../src/components/RunnerResults/ResponsePane/index.js | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js b/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js index ba8696a14..18b9ec2c6 100644 --- a/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js +++ b/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js @@ -35,7 +35,7 @@ const formatResponse = (data, mode) => { return safeStringifyJSON(data); }; -const QueryResult = ({ item, collection, data, width, disableRunEventListener, headers, error }) => { +const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEventListener, headers, error }) => { const contentType = getContentType(headers); const mode = getCodeMirrorModeBasedOnContentType(contentType); const formattedData = formatResponse(data, mode); @@ -90,7 +90,7 @@ const QueryResult = ({ item, collection, data, width, disableRunEventListener, h { collection={collection} width={rightPaneWidth} data={response.data} + dataBuffer={response.dataBuffer} headers={response.headers} error={response.error} key={item.filename} diff --git a/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js b/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js index 6526c7454..aeba867f4 100644 --- a/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js +++ b/packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js @@ -34,6 +34,7 @@ const ResponsePane = ({ rightPaneWidth, item, collection }) => { width={rightPaneWidth} disableRunEventListener={true} data={responseReceived.data} + dataBuffer={responseReceived.dataBuffer} headers={responseReceived.headers} key={item.filename} />