mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix(collection/presentation): sometimes doesn't refresh properly
This commit is contained in:
		| @@ -95,13 +95,13 @@ function Presentation({ presentation, apiRef: externalApiRef } : { presentation: | |||||||
|                 apiRef.current = null; |                 apiRef.current = null; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|     }, []); |     }, [ presentation ]); | ||||||
|  |  | ||||||
|     return ( |     return ( | ||||||
|         <div ref={containerRef} className="reveal"> |         <div ref={containerRef} className="reveal"> | ||||||
|             <div className="slides"> |             <div className="slides"> | ||||||
|                 {presentation.slides?.map(slide => ( |                 {presentation.slides?.map(slide => ( | ||||||
|                     <Slide slide={slide} /> |                     <Slide key={slide.noteId} slide={slide} /> | ||||||
|                 ))} |                 ))} | ||||||
|             </div> |             </div> | ||||||
|         </div> |         </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user