From f5a452516144fc58fc8efebc04bf75c300b0219d Mon Sep 17 00:00:00 2001 From: lohit Date: Sat, 21 Sep 2024 11:26:38 +0530 Subject: [PATCH] fix: stringify response data is not a string (#3155) --- .../src/components/ResponsePane/QueryResult/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js b/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js index 8b233d51e..e9acd1f5c 100644 --- a/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js +++ b/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js @@ -55,7 +55,11 @@ const formatResponse = (data, mode, filter) => { return safeStringifyJSON(parsed, true); } - return data; + if (typeof data === 'string') { + return data; + } + + return safeStringifyJSON(data, true); }; const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEventListener, headers, error }) => {