mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 修复事件动作没有actions时白屏的问题
This commit is contained in:
parent
3fa7c39ef7
commit
3b2fdc21ab
@ -418,7 +418,7 @@ export class EventControl extends React.Component<
|
||||
// 找到激活的事件面板
|
||||
Object.keys(onEvent)
|
||||
.filter((key: string) => {
|
||||
return onEvent[key].actions.length && eventPanelActive[key];
|
||||
return onEvent[key]?.actions?.length && eventPanelActive[key];
|
||||
})
|
||||
.forEach((key: string, index: number) => {
|
||||
if (!this.eventPanelSortMap[key]) {
|
||||
|
Loading…
Reference in New Issue
Block a user