diff --git a/src/main/index.ts b/src/main/index.ts index 5ecf623..c3defa8 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -83,7 +83,7 @@ autoUpdater.on('update-available', (_info: any) => { }); }); -autoUpdater.on('error', (error: any) => { +autoUpdater.on('error', (_error: any) => { sendStatusToWindow({ type: 'error', message: diff --git a/src/renderer/components/modals/CreateQueryBuilderModal.tsx b/src/renderer/components/modals/CreateQueryBuilderModal.tsx index 2f5614f..3b065fb 100644 --- a/src/renderer/components/modals/CreateQueryBuilderModal.tsx +++ b/src/renderer/components/modals/CreateQueryBuilderModal.tsx @@ -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); @@ -75,9 +71,8 @@ export default function CreateQueryBuilderModal({ open, onClose }: Props) { const [codeString, setCodeString] = useState(''); const [queryPrefix, setQueryPrefix] = useState(''); - const [queryClause, setQueryClause] = useState( - defaultClause - ); + const [queryClause, setQueryClause] = + useState(defaultClause); const [logModalConfig, setLogModalConfig] = useState({ initialTab: 0, @@ -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); }