From 820e3033ea31d1e9ce81f91a290a69431e1f8225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Tue, 31 Oct 2023 11:55:45 +0100 Subject: [PATCH] Remove unused conditions in QueryResult The mode is returned by getCodeMirrorModeBasedOnContentType(), which always prefixes the returned values with 'application/'. However returning data on those application/html or application/text break Bruno. --- .../bruno-app/src/components/ResponsePane/QueryResult/index.js | 2 +- 1 file changed, 1 insertion(+), 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 b5508ba1b..40807bb05 100644 --- a/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js +++ b/packages/bruno-app/src/components/ResponsePane/QueryResult/index.js @@ -28,7 +28,7 @@ const formatResponse = (data, mode) => { return safeStringifyJSON(parsed, true); } - if (['text', 'html'].includes(mode) || typeof data === 'string') { + if (typeof data === 'string') { return data; }