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) => {
120
120
} , [ onUIEvent ] ) ;
121
121
122
122
const echartsConfigChildren = _ . omit ( comp . children , echartsConfigOmitChildren ) ;
123
+
124
+ const childrenProps = childrenToProps ( echartsConfigChildren ) ;
125
+
123
126
const option = useMemo ( ( ) => {
124
127
return getEchartsConfig (
125
- childrenToProps ( echartsConfigChildren ) as ToViewReturn < typeof echartsConfigChildren > ,
128
+ childrenProps as ToViewReturn < typeof echartsConfigChildren > ,
126
129
chartSize ,
127
130
themeConfig
128
131
) ;
129
- } , [ chartSize , ...Object . values ( echartsConfigChildren ) ] ) ;
132
+ } , [ childrenProps , chartSize , ...Object . values ( echartsConfigChildren ) ] ) ;
130
133
131
134
useEffect ( ( ) => {
132
135
comp . children . mapInstance . dispatch ( changeValueAction ( null , false ) )
You can’t perform that action at this time.
0 commit comments