fixed chart type changing rest

This commit is contained in:
nikita_bartoshuk
2025-08-27 13:22:01 +03:00
parent 78f7fc8a09
commit d4288daf01
2 changed files with 1 additions and 5 deletions

View File

@ -123,11 +123,8 @@ class EditChartController extends Component {
onType (type) {
const api = Common.EditorApi.get();
const image = new Asc.asc_CImgProperty();
const chart = this.props.storeFocusObjects.chartObject.get_ChartProperties();
chart.changeType(type);
image.put_ChartProperties(chart);
api.ImgApply(image);
// Force update styles
this.props.storeChartSettings.updateChartStyles(api.asc_getChartPreviews(chart.getType()));
}