diff --git a/examples/components/Theme.tsx b/examples/components/Theme.tsx index fe7d4dd19..2dfc3d7f6 100644 --- a/examples/components/Theme.tsx +++ b/examples/components/Theme.tsx @@ -61,7 +61,7 @@ export default { { actionType: 'custom', script: (context: any, doAction: any, event: any) => { - const theme = event.data.formData.config?.theme; + const theme = event.data.config?.theme; theme && updateTheme(theme); } }