Skip to content

Commit

Permalink
Update superset-frontend/src/SqlLab/components/SqlEditorLeftBar/index…
Browse files Browse the repository at this point in the history
….tsx

Co-authored-by: Michael S. Molina <[email protected]>
  • Loading branch information
pkdotson and michael-s-molina authored Apr 15, 2022
1 parent 2a4995c commit 8217c2c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ export default function SqlEditorLeftBar({
queryEditorRef.current = queryEditor;
}, [queryEditor]);

const onDbSearch = (searchText?: string) => {
if (searchText) setDbSearch(true);
else setDbSearch(false);
const onEmptyResults = (searchText?: string) => {
setEmptyResultsWithSearch(!!searchText);
};

const onDbChange = ({ id: dbId }: { id: number }) => {
Expand Down

0 comments on commit 8217c2c

Please sign in to comment.