Skip to content

Commit

Permalink
small tweaks to finalize build
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronleopold committed May 24, 2021
1 parent d58792e commit 974b35e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ autoUpdater.on('update-available', (_info: any) => {
});
});

autoUpdater.on('error', (error: any) => {
autoUpdater.on('error', (_error: any) => {
sendStatusToWindow({
type: 'error',
message:
Expand Down
15 changes: 5 additions & 10 deletions src/renderer/components/modals/CreateQueryBuilderModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ type LogModalConfig = {

export default function CreateQueryBuilderModal({ open, onClose }: Props) {
const { notify } = useNotify();
const {
advancedUpdate,
logUpdate,
advancedSelect,
advancedCount,
} = useQuery();
const { advancedUpdate, logUpdate, advancedSelect, advancedCount } =
useQuery();

const toggleLoading = useStore((state) => state.toggleLoading);
const loading = useStore((state) => state.loading, shallow);
Expand All @@ -75,9 +71,8 @@ export default function CreateQueryBuilderModal({ open, onClose }: Props) {

const [codeString, setCodeString] = useState<string>('');
const [queryPrefix, setQueryPrefix] = useState<string>('');
const [queryClause, setQueryClause] = useState<BasicQueryClause>(
defaultClause
);
const [queryClause, setQueryClause] =
useState<BasicQueryClause>(defaultClause);

const [logModalConfig, setLogModalConfig] = useState<LogModalConfig>({
initialTab: 0,
Expand Down Expand Up @@ -117,7 +112,7 @@ export default function CreateQueryBuilderModal({ open, onClose }: Props) {
if (typeof formatted === 'string') {
setCodeString(formatted);
} else {
const { sql, params } = formatted;
const { sql } = formatted;

setCodeString(sql);
}
Expand Down

0 comments on commit 974b35e

Please sign in to comment.