forked from extern/bruno
chore: cleanup unused props
This commit is contained in:
parent
b313cc53cc
commit
10d542311e
@ -8,7 +8,7 @@ if (!SERVER_RENDERED) {
|
|||||||
CodeMirror = require('codemirror');
|
CodeMirror = require('codemirror');
|
||||||
}
|
}
|
||||||
|
|
||||||
const QueryResult = ({data, isLoading, width}) => {
|
const QueryResult = ({data, width}) => {
|
||||||
const [cmEditor, setCmEditor] = useState(null);
|
const [cmEditor, setCmEditor] = useState(null);
|
||||||
const editor = useRef();
|
const editor = useRef();
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ const QueryResult = ({data, isLoading, width}) => {
|
|||||||
setCmEditor(_cmEditor);
|
setCmEditor(_cmEditor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(editor.current && cmEditor && data && !isLoading) {
|
if(editor.current && cmEditor && data) {
|
||||||
cmEditor.setValue(JSON.stringify(data, null, 2));
|
cmEditor.setValue(JSON.stringify(data, null, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@ const ResponsePane = ({rightPaneWidth, response, isLoading}) => {
|
|||||||
<QueryResult
|
<QueryResult
|
||||||
width={rightPaneWidth}
|
width={rightPaneWidth}
|
||||||
data={response.data}
|
data={response.data}
|
||||||
isLoading={isLoading}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user