fix(data-vi): js expressions in advanced config is not saved

This commit is contained in:
xilesun 2024-06-14 19:52:48 +08:00
parent 1fcf1320c2
commit 8e20aac7a7

View File

@ -123,7 +123,7 @@ export const ChartConfigure: React.FC<{
const chartType = useDefaultChartType();
const form = useMemo(
() => {
const decoratorProps = initialValues || field?.decoratorProps;
const decoratorProps = initialValues || schema?.['x-decorator-props'];
const config = decoratorProps?.config || {};
return createForm({
values: {