Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
note list improvements
zadamde1584eab8dd
diff --git a/src/public/app/services/note_list_renderer.js b/src/public/app/services/note_list_renderer.jsindex ba23260c1e..864b1a5392 100644--- a/src/public/app/services/note_list_renderer.js+++ b/src/public/app/services/note_list_renderer.js@@ -155,8 +155,8 @@ class NoteListRenderer {this.page = 1;this.pageSize = parseInt(parentNote.getLabelValue('pageSize'));- if (!this.pageSize || this.pageSize < 1 || this.pageSize > 10000) {- this.pageSize = 10;+ if (!this.pageSize || this.pageSize < 1) {+ this.pageSize = 20;}this.viewType = parentNote.getLabelValue('viewType');diff --git a/src/public/app/services/tree_cache.js b/src/public/app/services/tree_cache.jsindex 4d5fda4cd4..d68b9d17ee 100644--- a/src/public/app/services/tree_cache.js+++ b/src/public/app/services/tree_cache.js@@ -262,6 +262,10 @@ class TreeCache {}getNoteFromCache(noteId) {+ if (!noteId) {+ throw new Error("Empty noteId");+ }+return this.notes[noteId];}diff --git a/src/public/app/widgets/note_list.js b/src/public/app/widgets/note_list.jsindex c821ab1902..65fc80694a 100644--- a/src/public/app/widgets/note_list.js+++ b/src/public/app/widgets/note_list.js@@ -9,7 +9,7 @@ const TPL = `flex-grow: 100000;flex-shrink: 100000;min-height: 0;- padding: 0 10px 10px 10px;+ overflow: auto;}</style>