Skip to content

Commit b968287

Browse files
committed
Add ErrorBoundary to JBrowse
1 parent 2cd838b commit b968287

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jbrowse/src/client/JBrowse/Browser/Browser.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import LogSession from './plugins/LogSession/index';
88
import ExtendedVariantPlugin from './plugins/ExtendedVariantPlugin/index';
99
import './jbrowse.css';
1010
import JBrowseFooter from './components/JBrowseFooter';
11+
import { ErrorBoundary } from '@labkey/components';
1112

1213
const refTheme = createTheme()
1314
const blue = '#116596'
@@ -144,8 +145,10 @@ function View(){
144145
return (
145146
//TODO: can we make this expand to full page height?
146147
<div style={{height: "100%"}}>
147-
<JBrowseLinearGenomeView viewState={state} />
148-
<JBrowseFooter viewState={state} bgColor={bgColor}/>
148+
<ErrorBoundary>
149+
<JBrowseLinearGenomeView viewState={state} />
150+
<JBrowseFooter viewState={state} bgColor={bgColor}/>
151+
</ErrorBoundary>
149152
</div>
150153
)
151154
}

0 commit comments

Comments
 (0)