From 1952dc309be4bd48a3e70130ce660c250794f080 Mon Sep 17 00:00:00 2001 From: "John R. Supplee" Date: Tue, 20 Apr 2021 16:23:56 +0200 Subject: [PATCH] Bug fix for Due Cards --- client/components/main/dueCards.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/main/dueCards.js b/client/components/main/dueCards.js index 1d7f5b211..4841ddb27 100644 --- a/client/components/main/dueCards.js +++ b/client/components/main/dueCards.js @@ -3,7 +3,7 @@ import { OPERATOR_HAS, OPERATOR_SORT, OPERATOR_USER, - ORDER_DESCENDING, + ORDER_ASCENDING, PREDICATE_DUE_AT, } from '../../../config/search-const'; import { QueryParams } from '../../../config/query-classes'; @@ -62,14 +62,14 @@ class DueCardsComponent extends CardSearchPagedComponent { // queryParams[OPERATOR_LIMIT] = 5; queryParams.addPredicate(OPERATOR_SORT, { name: PREDICATE_DUE_AT, - order: ORDER_DESCENDING, + order: ORDER_ASCENDING, }); if (Utils.dueCardsView() !== 'all') { queryParams.addPredicate(OPERATOR_USER, Meteor.user().username); } - this.runGlobalSearch(queryParams.getQueryParams()); + this.runGlobalSearch(queryParams); } dueCardsView() {