Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Sep 12, 2024
1 parent 1ac5410 commit 4411cd7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/gui/tabs/query-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,13 @@ export default function QueryWindow({
const editorState = editorRef.current?.view?.state;

if (!editorState) return;
console.log(editorState);

if (all) {
finalStatements = splitSqlQuery(editorState).map((q) => q.text);
} else {
const segment = resolveToNearestStatement(editorState);
if (!segment) return;

console.log(segment);

const statement = editorState.doc.sliceString(segment.from, segment.to);

if (statement) {
Expand Down

0 comments on commit 4411cd7

Please sign in to comment.