fix(tasks and groupd): do not apply default due filter to challenges, fix edge case in group loading

This commit is contained in:
Matteo Pagliazzi
2020-09-11 19:53:28 +02:00
parent be58c8193e
commit 953c84260f
2 changed files with 6 additions and 2 deletions

View File

@@ -637,7 +637,10 @@ export default {
// as default filter for daily
// and set the filter as 'due' only when the component first
// loads and not on subsequent reloads.
if (type === 'daily' && filter === '' && this.user.preferences.dailyDueDefaultView) {
if (
type === 'daily' && filter === '' && !this.challenge
&& this.user.preferences.dailyDueDefaultView
) {
filter = 'due'; // eslint-disable-line no-param-reassign
}