diff --git a/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx b/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx index 04dca10885..8dd18824e1 100644 --- a/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx +++ b/services/web/frontend/js/features/chat/components/chat-fallback-error.tsx @@ -1,6 +1,7 @@ import { useTranslation } from 'react-i18next' import OLNotification from '@/shared/components/ol/ol-notification' import OLButton from '@/shared/components/ol/ol-button' +import RailPanelHeader from '@/features/ide-react/components/rail/rail-panel-header' interface ChatFallbackErrorProps { reconnect?: () => void @@ -10,18 +11,23 @@ function ChatFallbackError({ reconnect }: ChatFallbackErrorProps) { const { t } = useTranslation() return ( - + ) } diff --git a/services/web/frontend/js/features/chat/components/chat-pane.tsx b/services/web/frontend/js/features/chat/components/chat-pane.tsx index 60d5d0a391..c1aa2b999d 100644 --- a/services/web/frontend/js/features/chat/components/chat-pane.tsx +++ b/services/web/frontend/js/features/chat/components/chat-pane.tsx @@ -10,6 +10,7 @@ import { lazy, Suspense, useEffect } from 'react' import { useTranslation } from 'react-i18next' import classNames from 'classnames' import RailPanelHeader from '@/features/ide-react/components/rail/rail-panel-header' +import withErrorBoundary from '@/infrastructure/error-boundary' const MessageList = lazy(() => import('./message-list')) @@ -104,4 +105,4 @@ function Placeholder() { ) } -export default ChatPane +export default withErrorBoundary(ChatPane, () => )