Skip to content

Commit 5b89c50

Browse files
authored
Merge pull request #1175 from ipython-contrib/toc2-smallpatch-nonexisting-tilesidebar
Undefined title_sidebar
2 parents 965c653 + 8e61312 commit 5b89c50

File tree

1 file changed

+6
-0
lines changed
  • src/jupyter_contrib_nbextensions/nbextensions/toc2

1 file changed

+6
-0
lines changed

src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,12 @@
529529
return
530530
}
531531

532+
// In a live notebook, read_config will have been called already, but
533+
// in non-live notebooks, ensure that all config values are defined.
534+
if (!liveNotebook) {
535+
cfg = $.extend(true, {}, default_cfg, cfg);
536+
}
537+
532538
var toc_wrapper = $("#toc-wrapper");
533539
if (toc_wrapper.length === 0) { // toc window doesn't exist at all
534540
create_toc_div(cfg, st); // create it

0 commit comments

Comments
 (0)