Skip to content

Commit b7af382

Browse files
committed
Fixed Conditional statements.
1 parent b3e4c96 commit b7af382

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

client/packages/lowcoder-comps/src/comps/candleStickChartComp/candleStickChartConstants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ let chartJsonModeChildren: any = {
257257
tooltip: withDefault(BoolControl, true),
258258
legendVisibility: withDefault(BoolControl, true),
259259
}
260-
if (EchartsStyle) {
260+
if (EchartDefaultChartStyle && EchartDefaultTextStyle) {
261261
chartJsonModeChildren = {
262262
...chartJsonModeChildren,
263263
style: styleControl(EchartsStyle, 'style'),

client/packages/lowcoder-comps/src/comps/funnelChartComp/funnelChartConstants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ let chartJsonModeChildren: any = {
279279
opacity:withDefault(NumberControl,trans('funnelChart.defaultOpacity'))
280280
}
281281

282-
if (EchartsStyle) {
282+
if (EchartDefaultChartStyle && EchartDefaultTextStyle) {
283283
chartJsonModeChildren = {
284284
...chartJsonModeChildren,
285285
chartStyle: styleControl(EchartDefaultChartStyle, 'chartStyle'),

client/packages/lowcoder-comps/src/comps/gaugeChartComp/gaugeChartConstants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ let chartJsonModeChildren: any = {
298298
progressBarWidth:withDefault(NumberControl,trans('gaugeChart.defaultProgressBarWidth')),
299299

300300
}
301-
if (EchartsStyle) {
301+
if (EchartDefaultChartStyle && EchartDefaultTextStyle) {
302302
chartJsonModeChildren = {
303303
...chartJsonModeChildren,
304304
chartStyle: styleControl(EchartDefaultChartStyle, 'chartStyle'),

0 commit comments

Comments
 (0)