mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-15 04:02:38 +00:00
Lint
This commit is contained in:
@@ -91,7 +91,6 @@ const Editor = createClass({
|
|||||||
this.resizeObserver = new ResizeObserver(entries => {
|
this.resizeObserver = new ResizeObserver(entries => {
|
||||||
const height = document.querySelector('.editor > .snippetBar').offsetHeight;
|
const height = document.querySelector('.editor > .snippetBar').offsetHeight;
|
||||||
this.setState({ snippetBarHeight: height });
|
this.setState({ snippetBarHeight: height });
|
||||||
console.log('setting state to ', height );
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.resizeObserver.observe(snippetBar);
|
this.resizeObserver.observe(snippetBar);
|
||||||
@@ -436,7 +435,6 @@ const Editor = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
renderEditor : function(){
|
renderEditor : function(){
|
||||||
console.log('state at rendering is: ',this.state.snippetBarHeight);
|
|
||||||
if(this.isText()){
|
if(this.isText()){
|
||||||
return <>
|
return <>
|
||||||
<CodeEditor key='codeEditor'
|
<CodeEditor key='codeEditor'
|
||||||
|
|||||||
Reference in New Issue
Block a user