diff --git a/src/vis/violin/ViolinVis.tsx b/src/vis/violin/ViolinVis.tsx index db02f2eff..ab361f4a5 100644 --- a/src/vis/violin/ViolinVis.tsx +++ b/src/vis/violin/ViolinVis.tsx @@ -65,7 +65,6 @@ export function ViolinVis({ config, columns, scales, dimensions, selectedList, s const innerLayout: Partial = { showlegend: true, legend: { - // @ts-ignore itemclick: false, itemdoubleclick: false, }, @@ -84,7 +83,7 @@ export function ViolinVis({ config, columns, scales, dimensions, selectedList, s shapes: [], }; - setLayout((prev: Partial) => ({ ...prev, ...beautifyLayout(traces, innerLayout, prev, true) })); + setLayout((prev) => ({ ...prev, ...beautifyLayout(traces, innerLayout, prev, true) })); }, [traces]); return (