Skip to content

Commit f40e19f

Browse files
authored
修复#10041,赋值事件,args.value值为object时初始化加载不显示的bug (#10684)
* fix: 修复变量赋值事件,args.value为object值时加载不显示的bug * Revert "fix: 修复变量赋值事件,args.value为object值时加载不显示的bug" This reverts commit 9e911e1. * fix: 修复#10041,赋值事件,args.value值为object时初始化加载不显示的bug
1 parent c85b8cb commit f40e19f

File tree

1 file changed

+5
-1
lines changed
  • packages/amis-editor/src/renderer/event-control

1 file changed

+5
-1
lines changed

packages/amis-editor/src/renderer/event-control/helper.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3191,7 +3191,11 @@ export const getEventControlConfig = (
31913191

31923192
if (['setValue'].includes(action.actionType)) {
31933193
const root = getRootManager(manager);
3194-
let schema = JSONGetById(root.store.schema, config.__cmptId, 'id');
3194+
let schema = JSONGetById(
3195+
root.store.schema,
3196+
config.__cmptId || action.componentId,
3197+
'id'
3198+
);
31953199
if (schema) {
31963200
let __isScopeContainer = DATA_CONTAINER.includes(schema.type);
31973201
config.__isScopeContainer = __isScopeContainer;

0 commit comments

Comments
 (0)