File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import type {
1515} from '@deephaven/golden-layout' ;
1616import Log from '@deephaven/log' ;
1717import { usePrevious , useThrottledCallback } from '@deephaven/react-hooks' ;
18+ import { ErrorBoundary } from '@deephaven/components' ;
1819import { RootState } from '@deephaven/redux' ;
1920import { useDispatch , useSelector } from 'react-redux' ;
2021import PanelManager , { ClosedPanels } from './PanelManager' ;
@@ -343,14 +344,18 @@ export function DashboardLayout({
343344 { isDashboardEmpty && emptyDashboard }
344345 { layoutChildren }
345346 { React . Children . map ( children , child =>
346- child != null
347- ? React . cloneElement ( child as ReactElement , {
347+ child != null ? (
348+ // Have fallback be an empty array so that we don't show the error message over entire app
349+ // Look into using toast message in the future
350+ < ErrorBoundary fallback = { [ ] } >
351+ { React . cloneElement ( child as ReactElement , {
348352 id,
349353 layout,
350354 panelManager,
351355 registerComponent,
352- } )
353- : null
356+ } ) }
357+ </ ErrorBoundary >
358+ ) : null
354359 ) }
355360 </ >
356361 ) ;
Original file line number Diff line number Diff line change 1- version : ' 3.8'
2-
31services :
42 dhc-server :
53 container_name : dhc-server
You can’t perform that action at this time.
0 commit comments