mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
fixed chart type changing rest
This commit is contained in:
@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user