diff --git a/renderer/components/ResponsePane/QueryResult/index.js b/renderer/components/ResponsePane/QueryResult/index.js index dd9ebe66..dee7efb2 100644 --- a/renderer/components/ResponsePane/QueryResult/index.js +++ b/renderer/components/ResponsePane/QueryResult/index.js @@ -8,7 +8,7 @@ if (!SERVER_RENDERED) { CodeMirror = require('codemirror'); } -const QueryResult = ({data, isLoading, width}) => { +const QueryResult = ({data, width}) => { const [cmEditor, setCmEditor] = useState(null); const editor = useRef(); @@ -28,7 +28,7 @@ const QueryResult = ({data, isLoading, width}) => { setCmEditor(_cmEditor); } - if(editor.current && cmEditor && data && !isLoading) { + if(editor.current && cmEditor && data) { cmEditor.setValue(JSON.stringify(data, null, 2)); } diff --git a/renderer/components/ResponsePane/index.js b/renderer/components/ResponsePane/index.js index 94011299..6c2cb424 100644 --- a/renderer/components/ResponsePane/index.js +++ b/renderer/components/ResponsePane/index.js @@ -27,7 +27,6 @@ const ResponsePane = ({rightPaneWidth, response, isLoading}) => { ); }