@quillsql/react 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Chart.tsx +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "access": "public",
5
5
  "description": "Quill React components for building dashboards and reporting.",
6
6
  "main": "lib/index.js",
package/src/Chart.tsx CHANGED
@@ -625,6 +625,12 @@ const ChartUpdater: React.FC<ChartProps> = ({
625
625
  };
626
626
  }, [chartConfig, dateFilter]);
627
627
 
628
+ useEffect(() => {
629
+ if (config) {
630
+ setChartConfig(config);
631
+ }
632
+ }, [config]);
633
+
628
634
  if (!chartConfig || loading) {
629
635
  return (
630
636
  <div