Skip to content

Commit 6de4f5c

Browse files
committed
set showlegend default to true
1 parent a93e331 commit 6de4f5c

File tree

1 file changed

+1
-1
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components

1 file changed

+1
-1
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components/ChartForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const ChartForm: React.FC<ChartFormProps> = ({
151151
<Checkbox
152152
name="legend"
153153
value={chartData.options.showLegend?.toString()}
154-
checked={chartData.options.showLegend}
154+
checked={chartData.options.showLegend ?? true}
155155
onBlur={() => handleSave(chartData)}
156156
onChange={(e) =>
157157
handleChange('options', {

0 commit comments

Comments
 (0)