Skip to content

Commit

Permalink
remove useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
nitedani committed Dec 1, 2023
1 parent d7a39e0 commit 99b9a42
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vike-react-query/src/suspense.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ export function suspense<T extends object = Record<string, never>>(
}
return error
}
if (ErrorFallback === undefined) {
return
}

return (
<ErrorBoundary
fallbackRender={({ error: originalError, resetErrorBoundary }) => (
Expand Down

0 comments on commit 99b9a42

Please sign in to comment.