mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +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; | ||||
|             } | ||||
|         } | ||||
|     }, []); | ||||
|     }, [ presentation ]); | ||||
|  | ||||
|     return ( | ||||
|         <div ref={containerRef} className="reveal"> | ||||
|             <div className="slides"> | ||||
|                 {presentation.slides?.map(slide => ( | ||||
|                     <Slide slide={slide} /> | ||||
|                     <Slide key={slide.noteId} slide={slide} /> | ||||
|                 ))} | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user