diff --git a/pkg/interface/publish/src/js/components/lib/sidebar.js b/pkg/interface/publish/src/js/components/lib/sidebar.js index 7856e44bbc..775bd0a8fe 100644 --- a/pkg/interface/publish/src/js/components/lib/sidebar.js +++ b/pkg/interface/publish/src/js/components/lib/sidebar.js @@ -71,7 +71,7 @@ export class Sidebar extends Component { return (selectedPaths.includes(each)); }) .map((each, i) => { - let books = groupedNotebooks[each]; + let books = groupedNotebooks[each] || []; if (books.length === 0) return; if ((selectedGroups.length === 0) && groupedNotebooks["/~/"] &&