mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 04:58:08 +03:00
publish: handle 'no notebooks' case
This commit is contained in:
parent
952ea831d9
commit
1c45d4c46c
@ -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["/~/"] &&
|
||||
|
Loading…
Reference in New Issue
Block a user