Skip to content

Commit

Permalink
Merge pull request #585 from Altinity/editor-fix
Browse files Browse the repository at this point in the history
Fix monaco repeating rerenders
  • Loading branch information
Slach authored Jun 25, 2024
2 parents ce12dab + 1490cca commit a563aeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const SQLCodeEditor = ({
return (
<div style={{ position: 'relative', width: '100%', marginTop: '10px'}} >
<CodeEditor
height={Math.max(query.query.split('\n').length * 18, 150)}
value={query.query}
height={Math.max(updatedSQLQuery.split('\n').length * 18, 150)}
value={updatedSQLQuery}
language={LANGUAGE_ID}
monacoOptions={options}
onBeforeEditorMount={() => setInitialized(true)}
Expand Down

0 comments on commit a563aeb

Please sign in to comment.