Skip to content

Commit

Permalink
Merge pull request #9913 from marmelab/fix-core-error-UI
Browse files Browse the repository at this point in the history
Fix default Error background in global ErrorBoundary
  • Loading branch information
djhi authored Jun 11, 2024
2 parents e0015f7 + fcad01e commit 0d211de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/ra-core/src/core/CoreAdminUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,13 @@ export const CoreAdminUI = (props: CoreAdminUIProps) => {
<ErrorBoundary
onError={handleError}
fallbackRender={({ error, resetErrorBoundary }) => (
<ErrorComponent
error={error}
errorInfo={errorInfo}
resetErrorBoundary={resetErrorBoundary}
/>
<div style={{ minHeight: '100vh' }}>
<ErrorComponent
error={error}
errorInfo={errorInfo}
resetErrorBoundary={resetErrorBoundary}
/>
</div>
)}
>
<Routes>
Expand Down

0 comments on commit 0d211de

Please sign in to comment.