mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	fix checking affected notes when modified attribute's owning note is not loaded into cache, #803
This commit is contained in:
		
							parent
							
								
									443f389d73
								
							
						
					
					
						commit
						3d324b954d
					
				| @ -52,7 +52,17 @@ class Attribute { | ||||
|      *         3. attribute is owned by some note's ancestor and is inheritable | ||||
|      */ | ||||
|     isAffecting(affectedNote) { | ||||
|         if (!affectedNote) { | ||||
|             return false; | ||||
|         } | ||||
| 
 | ||||
|         const attrNote = this.getNote(); | ||||
| 
 | ||||
|         if (!attrNote) { | ||||
|             // the note (owner of the attribute) is not even loaded into the cache so it should not affect anything else
 | ||||
|             return false; | ||||
|         } | ||||
| 
 | ||||
|         const owningNotes = [affectedNote, ...affectedNote.getTemplateNotes()]; | ||||
| 
 | ||||
|         for (const owningNote of owningNotes) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam