From 7d3149f00317c4f31903df309c491d566b1030ab Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 10 Sep 2024 08:41:02 -0600 Subject: [PATCH] Allow changing of minigoban size --- src/components/MiniGoban/MiniGoban.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MiniGoban/MiniGoban.tsx b/src/components/MiniGoban/MiniGoban.tsx index 1e4128ce57..d9e7975d28 100644 --- a/src/components/MiniGoban/MiniGoban.tsx +++ b/src/components/MiniGoban/MiniGoban.tsx @@ -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(() => {