fix: add pinned group title

This commit is contained in:
thecodrr
2020-01-06 16:18:55 +05:00
parent 33bd2ed46b
commit a5aa4e472f

View File

@@ -64,6 +64,6 @@ function groupBySpecial(arr, key) {
let g = { items: retVal, groups, groupCounts };
g.items.splice(0, 0, ...pinned);
g.groupCounts.splice(0, 0, pinned.length);
g.groups.splice(0, 0, { title: " " });
g.groups.splice(0, 0, { title: "Pinned" });
return g;
}