ae6397ea322f7fc569ee9145420792b6494f9503
A list of all posts in a topic is stored in an object for quick lookup. This is used when switching between topics to get the list of posts in that topic. When filters change the list of posts in a topics is updated and this is picked up by the UI. If changing filters when browsing a topic results in an empty result, this would cause the original list of topics for that topic to be retained, causing the filter to simply not apply. This commit fixes that by resetting the post list in that case.
|Build Status| |Codecov| |license| frontend-app-discussions ======================== Please tag **@edx/fedx-team** on any PRs or issues. Thanks. Introduction ------------ This repository is a React-based micro frontend for the Open edX discussion forums. **Installation and Startup** 1. Clone your new repo: ``git clone https://github.com/edx/frontend-app-discussions.git`` 2. Install npm dependencies: ``cd frontend-app-discussions && npm install`` 3. Start the dev server: ``npm start`` The dev server is running at `http://localhost:2002 <http://localhost:2002>`_. Project Structure ----------------- The source for this project is organized into nested submodules according to the ADR `Feature-based Application Organization <https://github.com/edx/frontend-app-discussions/blob/master/docs/decisions/0002-feature-based-application-organization.rst>`_. Build Process Notes ------------------- **Production Build** The production build is created with ``npm run build``. Internationalization -------------------- Please see `edx/frontend-platform's i18n module <https://edx.github.io/frontend-platform/module-Internationalization.html>`_ for documentation on internationalization. The documentation explains how to use it, and the `How To <https://github.com/edx/frontend-i18n/blob/master/docs/how_tos/i18n.rst>`_ has more detail. .. |Build Status| image:: https://api.travis-ci.org/edx/frontend-app-discussions.svg?branch=master :target: https://travis-ci.org/edx/frontend-app-discussions .. |Codecov| image:: https://codecov.io/gh/edx/frontend-app-discussions/branch/master/graph/badge.svg :target: https://codecov.io/gh/edx/frontend-app-discussions .. |license| image:: https://img.shields.io/npm/l/@edx/frontend-app-discussions.svg :target: @edx/frontend-app-discussions
Languages
JavaScript
97.9%
SCSS
1.2%
HTML
0.7%
Makefile
0.2%