File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
client/packages/lowcoder-comps/src/comps/basicChartComp Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,16 @@ BasicChartTmpComp = withViewFn(BasicChartTmpComp, (comp) => {
120120 } , [ onUIEvent ] ) ;
121121
122122 const echartsConfigChildren = _ . omit ( comp . children , echartsConfigOmitChildren ) ;
123+
124+ const childrenProps = childrenToProps ( echartsConfigChildren ) ;
125+
123126 const option = useMemo ( ( ) => {
124127 return getEchartsConfig (
125- childrenToProps ( echartsConfigChildren ) as ToViewReturn < typeof echartsConfigChildren > ,
128+ childrenProps as ToViewReturn < typeof echartsConfigChildren > ,
126129 chartSize ,
127130 themeConfig
128131 ) ;
129- } , [ chartSize , ...Object . values ( echartsConfigChildren ) ] ) ;
132+ } , [ childrenProps , chartSize , ...Object . values ( echartsConfigChildren ) ] ) ;
130133
131134 useEffect ( ( ) => {
132135 comp . children . mapInstance . dispatch ( changeValueAction ( null , false ) )
You can’t perform that action at this time.
0 commit comments