mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	return null for not found attribute, closes #1294
This commit is contained in:
		| @@ -335,7 +335,7 @@ class NoteShort { | ||||
|     getAttribute(type, name) { | ||||
|         const attributes = this.getAttributes(type, name); | ||||
|  | ||||
|         return attributes.length > 0 ? attributes[0] : 0; | ||||
|         return attributes.length > 0 ? attributes[0] : null; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -307,7 +307,7 @@ class NoteShort { | ||||
|     getAttribute(type, name) { | ||||
|         const attributes = this.getAttributes(type, name); | ||||
|  | ||||
|         return attributes.length > 0 ? attributes[0] : 0; | ||||
|         return attributes.length > 0 ? attributes[0] : null; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user