link, publish: fix sidebar for multi-item groups

A syntax typo led the array for nested notebooks to not have paths
pushed into it. Only the last item in the group would be pushed into the
array. This commit fixes that typo.
This commit is contained in:
Matilde Park 2020-04-01 00:53:49 -04:00
parent 93c881cec9
commit 0c87c2c186
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export class ChannelsSidebar extends Component {
if (groupPath in associations) {
if (groupedChannels[groupPath]) {
let array = groupedChannels[groupPath];
array.push[path];
array.push(path);
groupedChannels[groupPath] = array;
} else {
groupedChannels[groupPath] = [path];

View File

@ -53,7 +53,7 @@ export class Sidebar extends Component {
if (path in associations) {
if (groupedNotebooks[path]) {
let array = groupedNotebooks[path];
array.push[book];
array.push(book);
groupedNotebooks[path] = array;
} else {
groupedNotebooks[path] = [book];