From d0829bc3a4b2f92a0bec831589d7c34f4853b598 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Wed, 12 May 2021 19:41:28 -0400 Subject: [PATCH] `hasDiscussions` method of DiscussionListState has been removed --- framework/core/js/src/forum/components/DiscussionPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/forum/components/DiscussionPage.js b/framework/core/js/src/forum/components/DiscussionPage.js index 183cadf1b..80d49e691 100644 --- a/framework/core/js/src/forum/components/DiscussionPage.js +++ b/framework/core/js/src/forum/components/DiscussionPage.js @@ -41,7 +41,7 @@ export default class DiscussionPage extends Page { // page, then we don't want Mithril to redraw the whole page – if it did, // then the pane would redraw which would be slow and would cause problems with // event handlers. - if (app.discussions.hasDiscussions()) { + if (app.discussions.hasItems()) { app.pane.enable(); app.pane.hide(); }