FIX: exception with triggerRefresh and subcat listing (#8131)

Clicking fast on the "top", "unread", or "latest" button  when browsing a parent category page with subcategories and the setting `Show subcategory list above topics in this category` enabled would cause an exception:

```
Uncaught Error: Nothing handled the action 'triggerRefresh'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.
```
This commit is contained in:
Joffrey JAFFEUX 2019-10-02 07:51:23 -04:00 committed by GitHub
parent 302e8f4393
commit ef610af328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,10 @@ export default (filterArg, params) => {
actions: {
setNotification(notification_level) {
this.currentModel.setNotification(notification_level);
},
triggerRefresh() {
this.refresh();
}
}
});