Skip to content

Commit

Permalink
Allow changing of minigoban size
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Sep 10, 2024
1 parent bc5f2c8 commit 7d3149f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MiniGoban/MiniGoban.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export function MiniGoban(props: MiniGobanProps): JSX.Element {
goban.current?.destroy();
goban_div.current.childNodes.forEach((node) => node.remove());
};
}, [props.game_id, props.review_id]);
}, [props.game_id, props.review_id, props.width, props.height]);

// Update displayWidth dynamically
React.useEffect(() => {
Expand Down

0 comments on commit 7d3149f

Please sign in to comment.