File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Layouts } from "react-grid-layout";
55
66import { ChartPanelLayoutTypeProps } from "@/components/chart-panel" ;
77import ChartGridLayout from "@/components/react-grid" ;
8- import { isLayouting , ReactGridLayoutsType } from "@/configurator" ;
8+ import { hasChartConfigs , ReactGridLayoutsType } from "@/configurator" ;
99import { useConfiguratorState } from "@/src" ;
1010import { assert } from "@/utils/assert" ;
1111
@@ -31,7 +31,7 @@ const decodeLayouts = (layouts: Layouts) => {
3131
3232const ChartPanelLayoutCanvas = ( props : ChartPanelLayoutTypeProps ) => {
3333 const { chartConfigs } = props ;
34- const [ config , dispatch ] = useConfiguratorState ( isLayouting ) ;
34+ const [ config , dispatch ] = useConfiguratorState ( hasChartConfigs ) ;
3535 const [ layouts , setLayouts ] = useState < Layouts > ( ( ) => {
3636 assert (
3737 config . layout . type === "dashboard" && config . layout . layout === "canvas" ,
You can’t perform that action at this time.
0 commit comments