Skip to content

Commit

Permalink
fix(charts): fix wrong width
Browse files Browse the repository at this point in the history
  • Loading branch information
leineveber authored and alexanderrudnik committed Jan 27, 2022
1 parent 22d9935 commit 31c5c74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/common/charts/BaseChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export const BaseChart: React.FC<BaseChartProps> = ({ option, width, height, onE

useEffect(() => {
// TODO FIXME workaround to make sure that parent container is initialized before the chart
setLoading(false);
setTimeout(() => {
setLoading(false);
}, 1000 / 2);
}, []);

return loading ? (
Expand Down

0 comments on commit 31c5c74

Please sign in to comment.