improved note list pager for many pages

This commit is contained in:
zadam
2020-12-12 12:07:15 +01:00
parent 5098dda376
commit 60e2026850
6 changed files with 29 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ class NoteCache {
this.childParentToBranch = {};
/** @type {Object.<String, Attribute>} */
this.attributes = [];
/** @type {Object.<String, Attribute[]>} Points from attribute type-name to list of attributes them */
/** @type {Object.<String, Attribute[]>} Points from attribute type-name to list of attributes */
this.attributeIndex = {};
this.loaded = false;
@@ -22,7 +22,7 @@ class NoteCache {
/** @return {Attribute[]} */
findAttributes(type, name) {
return this.attributeIndex[`${type}-${name}`] || [];
return this.attributeIndex[`${type}-${name.toLowerCase()}`] || [];
}
/** @return {Attribute[]} */