mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	improved note list pager for many pages
This commit is contained in:
		| @@ -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[]} */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user