From b440922dd39e194ee64e06b715ee127bcb71de91 Mon Sep 17 00:00:00 2001 From: vargburz Date: Fri, 9 Feb 2024 21:01:37 +0300 Subject: [PATCH] fix watcher --- react/ChartwerkBarPod.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/ChartwerkBarPod.tsx b/react/ChartwerkBarPod.tsx index 9563e53..826a14b 100644 --- a/react/ChartwerkBarPod.tsx +++ b/react/ChartwerkBarPod.tsx @@ -45,7 +45,7 @@ export function ChartwerkReactBarPod(props: ChartwerkBarPodProps) { // because it creates new pod anyway pod.updateData(props.series, props.options); } - }, [chart, props.id, props.options]); + }, [chart, props.id, props.series, props.options]); // TODO: it's a hack to render the BarPod right after the div appears in DOM setTimeout(() => {