mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +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