Skip to content

Commit

Permalink
fix: tldraw not changing pages correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
germanocaumo committed Aug 29, 2022
1 parent 45b3166 commit 105ed25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function Whiteboard(props) {

// change tldraw page when presentation page changes
React.useEffect(() => {
if (tldrawAPI && curPageId && prevSlidePosition) {
if (tldrawAPI && curPageId) {
tldrawAPI.changePage(curPageId);
let zoom = prevSlidePosition
? calculateZoom(prevSlidePosition.viewBoxWidth, prevSlidePosition.viewBoxHeight)
Expand Down

0 comments on commit 105ed25

Please sign in to comment.