mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
web: fix crash when sorting tags
This commit is contained in:
@@ -200,7 +200,10 @@ async function changeGroupOptions(
|
||||
|
||||
if (options.parentKey === "groupBy") {
|
||||
if (item.key === "abc") groupOptions.sortBy = "title";
|
||||
else groupOptions.sortBy = "dateEdited";
|
||||
else
|
||||
options.groupingKey === "tags" || options.groupingKey === "trash"
|
||||
? "dateModified"
|
||||
: "dateEdited";
|
||||
}
|
||||
await db.settings.setGroupOptions(options.groupingKey, groupOptions);
|
||||
options.refresh();
|
||||
|
||||
Reference in New Issue
Block a user