Skip to content

Commit

Permalink
Fix bug when functionNames is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneTorap committed Sep 26, 2022
1 parent 4ee7922 commit 93ce681
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ const AceEditorWrapper = ({
}: AceEditorWrapperProps) => {
const dispatch = useDispatch();

const { sql: currentSql, functionNames } = queryEditor;
const { sql: currentSql } = queryEditor;
const functionNames = queryEditor.functionNames ?? [];
const schemas = queryEditor.schemaOptions ?? [];
const tables = queryEditor.tableOptions ?? [];

Expand Down

0 comments on commit 93ce681

Please sign in to comment.