mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 14:49:01 +02:00
fix(collection/presentation): sometimes doesn't refresh properly
This commit is contained in:
parent
c8b7322f1e
commit
66ba4a596c
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user