Update index.tsx

This commit is contained in:
miaoxinyu01 2023-06-25 15:59:47 +08:00 committed by GitHub
parent dc6325be3b
commit 18d3db7aed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ export class EventControl extends React.Component<
// 编辑的时候只能拿到当前动作前面动作的事件变量
if (data.type === 'update') {
actions = actions.slice(0, data.actionData!.actionIndex !== undefined data.actionData!.actionIndex + 1 : 0);
actions = actions.slice(0, data.actionData!.actionIndex !== undefined ? data.actionData!.actionIndex + 1 : 0);
}
let jsonSchema = {...(eventConfig?.dataSchema?.[0] ?? {})};