mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
feat: clone all notes before grouping
This commit is contained in:
@@ -137,7 +137,7 @@ export default class Notes extends Collection {
|
|||||||
* @param {"asc"|"desc"} sort
|
* @param {"asc"|"desc"} sort
|
||||||
*/
|
*/
|
||||||
group(by, sort = "desc") {
|
group(by, sort = "desc") {
|
||||||
let notes = this.all;
|
let notes = qclone(this.all);
|
||||||
|
|
||||||
switch (by) {
|
switch (by) {
|
||||||
case "abc":
|
case "abc":
|
||||||
|
|||||||
Reference in New Issue
Block a user