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');
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,6 @@ const ResponsePane = ({rightPaneWidth, response, isLoading}) => {
|
||||
<QueryResult
|
||||
width={rightPaneWidth}
|
||||
data={response.data}
|
||||
isLoading={isLoading}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user