mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-23 06:08:39 +01:00
bug(#699): fixed crashing app on clicking on request result in runner
This commit is contained in:
parent
f8f38802a9
commit
55c52971d6
@ -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
|
||||
<QueryResultPreview
|
||||
previewTab={previewTab}
|
||||
data={data}
|
||||
dataBuffer={item.response.dataBuffer}
|
||||
dataBuffer={dataBuffer}
|
||||
formattedData={formattedData}
|
||||
item={item}
|
||||
contentType={contentType}
|
||||
|
@ -41,6 +41,7 @@ const ResponsePane = ({ rightPaneWidth, item, collection }) => {
|
||||
collection={collection}
|
||||
width={rightPaneWidth}
|
||||
data={response.data}
|
||||
dataBuffer={response.dataBuffer}
|
||||
headers={response.headers}
|
||||
error={response.error}
|
||||
key={item.filename}
|
||||
|
@ -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}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user