mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix displaying error message in mermaid, closes #3841
This commit is contained in:
		
							parent
							
								
									8226f62ded
								
							
						
					
					
						commit
						1d3272e9f8
					
				@ -73,6 +73,8 @@ export default class MermaidWidget extends NoteContextAwareWidget {
 | 
			
		||||
 | 
			
		||||
        const wheelZoomLoaded = libraryLoader.requireLibrary(libraryLoader.WHEEL_ZOOM);
 | 
			
		||||
 | 
			
		||||
        this.$errorContainer.hide();
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            await this.renderSvg(async renderedSvg => {
 | 
			
		||||
                this.$display.html(renderedSvg);
 | 
			
		||||
@ -87,8 +89,6 @@ export default class MermaidWidget extends NoteContextAwareWidget {
 | 
			
		||||
                    speed: 20,
 | 
			
		||||
                    zoomOnClick: false
 | 
			
		||||
                });
 | 
			
		||||
 | 
			
		||||
                this.$errorContainer.hide();
 | 
			
		||||
            });
 | 
			
		||||
        } catch (e) {
 | 
			
		||||
            this.$errorMessage.text(e.message);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user