From 0e715a8c4092bc5fb0ff8a113b8b49a4608309df Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 11 Sep 2020 18:45:35 +0200 Subject: [PATCH] Restore comment I love small diffs. --- js/src/forum/components/IndexPage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/forum/components/IndexPage.js b/js/src/forum/components/IndexPage.js index 22d8eb456..7995f3565 100644 --- a/js/src/forum/components/IndexPage.js +++ b/js/src/forum/components/IndexPage.js @@ -29,6 +29,10 @@ export default class IndexPage extends Page { this.lastDiscussion = app.previous.get('discussion'); } + // If the user is coming from the discussion list, then they have either + // just switched one of the parameters (filter, sort, search) or they + // probably want to refresh the results. We will clear the discussion list + // cache so that results are reloaded. if (app.previous.matches(IndexPage)) { app.discussions.clear(); }