mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	Update battachment.ts to fix bug that prevents loading library items
This commit is contained in:
		
							parent
							
								
									e64e51c078
								
							
						
					
					
						commit
						d9d3613caf
					
				@ -98,7 +98,7 @@ class BAttachment extends AbstractBeccaEntity<BAttachment> {
 | 
			
		||||
 | 
			
		||||
    /** @returns true if the note has string content (not binary) */
 | 
			
		||||
    hasStringContent(): boolean {
 | 
			
		||||
        return this.type !== undefined && utils.isStringNote(this.type, this.mime);
 | 
			
		||||
        return this.type utils.isStringNote(this.type, this.mime); // here was !== undefined && utils.isStringNote(this.type, this.mime); I dont know why we need !=undefined. But it filters out canvas libary items
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    isContentAvailable() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user