mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	defensive programming, #3089
This commit is contained in:
		| @@ -97,6 +97,11 @@ function getNotesAndBranchesAndAttributes(noteIds) { | |||||||
|     for (const attributeId of collectedAttributeIds) { |     for (const attributeId of collectedAttributeIds) { | ||||||
|         const attribute = becca.attributes[attributeId]; |         const attribute = becca.attributes[attributeId]; | ||||||
|  |  | ||||||
|  |         if (!attribute) { | ||||||
|  |             log.error(`Could not find attribute for attributeId=${attributeId}`); | ||||||
|  |             continue; | ||||||
|  |         } | ||||||
|  |  | ||||||
|         attributes.push({ |         attributes.push({ | ||||||
|             attributeId: attribute.attributeId, |             attributeId: attribute.attributeId, | ||||||
|             noteId: attribute.noteId, |             noteId: attribute.noteId, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user