diff --git a/framework/core/js/src/forum/components/IndexPage.tsx b/framework/core/js/src/forum/components/IndexPage.tsx index 7991610f32..fb944ea532 100644 --- a/framework/core/js/src/forum/components/IndexPage.tsx +++ b/framework/core/js/src/forum/components/IndexPage.tsx @@ -70,20 +70,12 @@ export default class IndexPage { const items = new ItemList(); - items.add('toolbar', this.toolbarView(), 100); - items.add('discussionList', this.discussionListView(), 90); + items.add('toolbar',
{this.toolbarItems().toArray()}
, 100); + items.add('discussionList', , 90); return items; } - toolbarView(): Mithril.Children { - return
{this.toolbarItems().toArray()}
; - } - - discussionListView(): Mithril.Children { - return ; - } - toolbarItems(): ItemList { const items = new ItemList();