We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64fba1d commit 10ad78aCopy full SHA for 10ad78a
src/apis/arknights.ts
@@ -46,7 +46,7 @@ export const useLevels = ({ suspense = true }: { suspense?: boolean } = {}) => {
46
},
47
})
48
49
- if ((response.data as any).__serverError) {
+ if ((response.data as any)?.__serverError) {
50
return {
51
...response,
52
error: (response.data as any).__serverError,
0 commit comments