mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	client: Fix double errors if not returning a widget
This commit is contained in:
		
							parent
							
								
									70d55097ee
								
							
						
					
					
						commit
						03a23d15f9
					
				| @ -76,10 +76,11 @@ async function getWidgetBundlesByParent() { | |||||||
| 
 | 
 | ||||||
|         try { |         try { | ||||||
|             widget = await executeBundle(bundle); |             widget = await executeBundle(bundle); | ||||||
|             widget._noteId = bundle.noteId; |             if (widget) { | ||||||
|             widgetsByParent.add(widget); |                 widget._noteId = bundle.noteId; | ||||||
|         } |                 widgetsByParent.add(widget); | ||||||
|         catch (e) { |             } | ||||||
|  |         } catch (e) { | ||||||
|             const noteId = bundle.noteId; |             const noteId = bundle.noteId; | ||||||
|             const note = await froca.getNote(noteId); |             const note = await froca.getNote(noteId); | ||||||
|             toastService.showPersistent({ |             toastService.showPersistent({ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran