mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 10:16:00 +00:00
query - saving to local storage
This commit is contained in:
@@ -33,8 +33,7 @@ export default function SqlEditor({
|
||||
const editorRef = React.useRef(null);
|
||||
|
||||
React.useEffect(() => {
|
||||
console.log('editorRef.current', editorRef.current);
|
||||
if (tabVisible) editorRef.current.editor.focus();
|
||||
if (tabVisible && editorRef.current && editorRef.current.editor) editorRef.current.editor.focus();
|
||||
}, [tabVisible]);
|
||||
return (
|
||||
<Wrapper ref={containerRef}>
|
||||
|
||||
Reference in New Issue
Block a user