File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ export default datagridPlugin;
3535function activateWidgetExtension (
3636 app : Application < Widget > ,
3737 registry : IJupyterWidgetRegistry ,
38- themeManager : IThemeManager ,
38+ themeManager : IThemeManager | null ,
3939) : void {
4040 // Exporting a patched DataGridView widget which handles dynamic theme changes
4141 class DataGridView extends widgetExports . DataGridView {
4242 initialize ( parameters : WidgetView . IInitializeParameters ) {
43- if ( themeManager . theme != null ) {
43+ if ( themeManager ? .theme != null ) {
4444 this . isLightTheme = themeManager . isLight ( themeManager . theme ) ;
4545 }
4646 super . initialize ( parameters ) ;
@@ -55,7 +55,7 @@ function activateWidgetExtension(
5555 }
5656
5757 private onThemeChanged ( ) {
58- if ( themeManager . theme != null ) {
58+ if ( themeManager ? .theme != null ) {
5959 this . isLightTheme = themeManager . isLight ( themeManager . theme ) ;
6060 }
6161 this . updateGridStyle ( ) ;
You can’t perform that action at this time.
0 commit comments