feat: clone all notes before grouping

This commit is contained in:
thecodrr
2020-12-09 12:27:13 +05:00
parent afe0f2c984
commit ca804e2ed5

View File

@@ -137,7 +137,7 @@ export default class Notes extends Collection {
* @param {"asc"|"desc"} sort
*/
group(by, sort = "desc") {
let notes = this.all;
let notes = qclone(this.all);
switch (by) {
case "abc":