mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: give pinned group a name
This commit is contained in:
@@ -9,7 +9,7 @@ export function groupBy(arr, key, sortSelector, sortDirection) {
|
||||
|
||||
let groups = new Map();
|
||||
arr.forEach((item) => {
|
||||
let groupTitle = item.pinned ? "" : key(item);
|
||||
let groupTitle = item.pinned ? "Pinned" : key(item);
|
||||
let arr = groups.get(groupTitle) || [];
|
||||
arr.push(item);
|
||||
groups.set(groupTitle, arr);
|
||||
|
||||
Reference in New Issue
Block a user