Skip to content

Commit

Permalink
Merge pull request #98 from 2skydev/dev
Browse files Browse the repository at this point in the history
v0.0.19-re
  • Loading branch information
2skydev authored Sep 30, 2023
2 parents a5a3c60 + acdd953 commit 484a088
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
dist
out
.gitignore
generated-*
4 changes: 1 addition & 3 deletions src/renderer/src/hooks/useAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ const useAPI = <FnName extends ElectronContextPropertyName>(
revalidateOnFocus: false,
revalidateOnReconnect: false,
fetcher: async ([, args]: typeof key) => {
// @ts-ignore
// @ts-ignore: ...args
const response = await window.electron[fnName](...args)

if (response?.errorCode) throw new Error(response?.message || 'Unknown Error')

return response
},
...swrOptions,
Expand Down

0 comments on commit 484a088

Please sign in to comment.