Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: handle crash when sorting if item doesn't have a title (#1447)

Ammar Ahmed5445ee0335d5
diff --git a/packages/core/utils/grouping.js b/packages/core/utils/grouping.js
index ef4cef502..ae93df9d1 100644
--- a/packages/core/utils/grouping.js
+++ b/packages/core/utils/grouping.js
@@ -49,7 +49,7 @@ const comparators = {
};
function getTitle(item) {
- return item.alias || item.title;
+ return item.alias || item.title || "";
}
const KEY_SELECTORS = {