mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 13:06:09 +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));
|
return (selectedPaths.includes(each));
|
||||||
})
|
})
|
||||||
.map((each, i) => {
|
.map((each, i) => {
|
||||||
let books = groupedNotebooks[each];
|
let books = groupedNotebooks[each] || [];
|
||||||
if (books.length === 0) return;
|
if (books.length === 0) return;
|
||||||
if ((selectedGroups.length === 0) &&
|
if ((selectedGroups.length === 0) &&
|
||||||
groupedNotebooks["/~/"] &&
|
groupedNotebooks["/~/"] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user