mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
core: fix groups returning only 1 group
This commit is contained in:
@@ -460,7 +460,13 @@ export class FilteredSelector<T extends Item> {
|
||||
"reminders.date",
|
||||
createUpcomingReminderTimeQuery().as("dueDate")
|
||||
);
|
||||
} else fields.push(options.sortBy);
|
||||
}
|
||||
|
||||
if (options.groupBy === "abc") fields.push("title");
|
||||
else if (options.sortBy === "title" && options.groupBy !== "none")
|
||||
fields.push("dateCreated");
|
||||
else if (options.sortBy !== "dueDate") fields.push(options.sortBy);
|
||||
|
||||
return Array.from(
|
||||
groupArray(
|
||||
await this.filter
|
||||
|
||||
Reference in New Issue
Block a user