diff --git a/services/web/frontend/js/features/ide-react/components/history-container.tsx b/services/web/frontend/js/features/ide-react/components/history-container.tsx index 32c4b2c70b..096973bc0c 100644 --- a/services/web/frontend/js/features/ide-react/components/history-container.tsx +++ b/services/web/frontend/js/features/ide-react/components/history-container.tsx @@ -1,7 +1,5 @@ import { useLayoutContext } from '../../../shared/context/layout-context' import { FullSizeLoadingSpinner } from '../../../shared/components/loading-spinner' -import { ErrorBoundaryFallback } from '../../../shared/components/error-boundary-fallback' -import withErrorBoundary from '../../../infrastructure/error-boundary' import { lazy, Suspense } from 'react' const HistoryRoot = lazy( @@ -22,4 +20,4 @@ function HistoryContainer() { ) } -export default withErrorBoundary(HistoryContainer, ErrorBoundaryFallback) +export default HistoryContainer diff --git a/services/web/frontend/js/features/ide-react/components/history-root.tsx b/services/web/frontend/js/features/ide-react/components/history-root.tsx index 6dad985eda..07e6c5f663 100644 --- a/services/web/frontend/js/features/ide-react/components/history-root.tsx +++ b/services/web/frontend/js/features/ide-react/components/history-root.tsx @@ -1,5 +1,7 @@ import { memo } from 'react' import { HistoryProvider } from '@/features/history/context/history-context' +import withErrorBoundary from '@/infrastructure/error-boundary' +import { ErrorBoundaryFallback } from '@/shared/components/error-boundary-fallback' import History from './history' const HistoryRoot = () => ( @@ -8,4 +10,4 @@ const HistoryRoot = () => ( ) -export default memo(HistoryRoot) +export default withErrorBoundary(memo(HistoryRoot), ErrorBoundaryFallback)