mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix: undefined notes in groupBy
This commit is contained in:
@@ -54,6 +54,7 @@ class Database {
|
||||
* @param {string} by One from 'abc', 'month', 'year' or 'week'. Leave it empty for default grouping.
|
||||
*/
|
||||
groupNotes(by) {
|
||||
let notes = this.getNotes();
|
||||
switch (by) {
|
||||
case "abc":
|
||||
return groupBy(notes, note => note.title[0].toUpperCase());
|
||||
|
||||
Reference in New Issue
Block a user