mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
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:
parent
93c881cec9
commit
0c87c2c186
@ -41,7 +41,7 @@ export class ChannelsSidebar extends Component {
|
|||||||
if (groupPath in associations) {
|
if (groupPath in associations) {
|
||||||
if (groupedChannels[groupPath]) {
|
if (groupedChannels[groupPath]) {
|
||||||
let array = groupedChannels[groupPath];
|
let array = groupedChannels[groupPath];
|
||||||
array.push[path];
|
array.push(path);
|
||||||
groupedChannels[groupPath] = array;
|
groupedChannels[groupPath] = array;
|
||||||
} else {
|
} else {
|
||||||
groupedChannels[groupPath] = [path];
|
groupedChannels[groupPath] = [path];
|
||||||
|
@ -53,7 +53,7 @@ export class Sidebar extends Component {
|
|||||||
if (path in associations) {
|
if (path in associations) {
|
||||||
if (groupedNotebooks[path]) {
|
if (groupedNotebooks[path]) {
|
||||||
let array = groupedNotebooks[path];
|
let array = groupedNotebooks[path];
|
||||||
array.push[book];
|
array.push(book);
|
||||||
groupedNotebooks[path] = array;
|
groupedNotebooks[path] = array;
|
||||||
} else {
|
} else {
|
||||||
groupedNotebooks[path] = [book];
|
groupedNotebooks[path] = [book];
|
||||||
|
Loading…
Reference in New Issue
Block a user