chore: cleanup unused props

This commit is contained in:
Anoop M D 2022-03-15 03:13:26 +05:30
parent b313cc53cc
commit 10d542311e
2 changed files with 2 additions and 3 deletions

View File

@ -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));
}

View File

@ -27,7 +27,6 @@ const ResponsePane = ({rightPaneWidth, response, isLoading}) => {
<QueryResult
width={rightPaneWidth}
data={response.data}
isLoading={isLoading}
/>
);
}