hasDiscussions method of DiscussionListState has been removed

This commit is contained in:
Alexander Skvortsov 2021-05-12 19:41:28 -04:00
parent 12abec475f
commit d0829bc3a4

View File

@ -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, // 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 // then the pane would redraw which would be slow and would cause problems with
// event handlers. // event handlers.
if (app.discussions.hasDiscussions()) { if (app.discussions.hasItems()) {
app.pane.enable(); app.pane.enable();
app.pane.hide(); app.pane.hide();
} }