Skip to content

Commit

Permalink
fix:d兼容dispatchEvent数据未定义的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm-lv committed Dec 21, 2023
1 parent 2aee640 commit 74a8cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-core/src/actions/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const runAction = async (
action.args = {...actionConfig.args};

// __rendererData默认为renderer.props.data,兼容表单项值变化时的data读取
if (!event.data.__rendererData) {
if (!event.data?.__rendererData) {
additional = {
event,
__rendererData: renderer.props.data // 部分组件交互后会有更新,如果想要获取那部分数据,可以通过事件数据获取
Expand Down

0 comments on commit 74a8cee

Please sign in to comment.