From df49046f732465d9587304b86a3299810fc2e57e Mon Sep 17 00:00:00 2001 From: hsm-lv Date: Wed, 27 Jul 2022 16:46:36 +0800 Subject: [PATCH] fix:eventaction ts errir Change-Id: I462f47935a9d8dc7a65376c998fd37c9f3579fa6 --- packages/amis-editor/src/renderer/event-control/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis-editor/src/renderer/event-control/index.tsx b/packages/amis-editor/src/renderer/event-control/index.tsx index 30667229f..d7c6c84ac 100644 --- a/packages/amis-editor/src/renderer/event-control/index.tsx +++ b/packages/amis-editor/src/renderer/event-control/index.tsx @@ -505,7 +505,7 @@ export class EventControl extends React.Component< const actionConfig = actionConfigInitFormatter?.(action); const actionNode = findActionNode(actionTree, actionConfig?.actionType!); const hasSubActionNode = findSubActionNode(actionTree, action.actionType); - const cmpts = getComponents(actionNode); + const cmpts = getComponents(actionNode!); const node = findTree(cmpts, item => item.value === action.componentId); let setValueDs: any = null;