From 0c87c2c1862e29754e2f60013e7f407dcf9b0038 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Wed, 1 Apr 2020 00:53:49 -0400 Subject: [PATCH] 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. --- pkg/interface/link/src/js/components/lib/channel-sidebar.js | 2 +- pkg/interface/publish/src/js/components/lib/sidebar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/link/src/js/components/lib/channel-sidebar.js b/pkg/interface/link/src/js/components/lib/channel-sidebar.js index d65e7f073b..6390f23659 100644 --- a/pkg/interface/link/src/js/components/lib/channel-sidebar.js +++ b/pkg/interface/link/src/js/components/lib/channel-sidebar.js @@ -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]; diff --git a/pkg/interface/publish/src/js/components/lib/sidebar.js b/pkg/interface/publish/src/js/components/lib/sidebar.js index 775bd0a8fe..fb6da3bf7b 100644 --- a/pkg/interface/publish/src/js/components/lib/sidebar.js +++ b/pkg/interface/publish/src/js/components/lib/sidebar.js @@ -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];