mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🚑️ Fix command event not triggering
This commit is contained in:
parent
1ca7040ec2
commit
280a91cfd5
@ -78,8 +78,9 @@ export const executeCommandEvent = ({ state, command }: Props) => {
|
||||
message: "Command event doesn't have a connected group",
|
||||
});
|
||||
const nextBlockIndex = nextGroup.blocks.findIndex(byId(nextEdge.to.blockId));
|
||||
const newBlockId = `virtual-${event.id}-block`;
|
||||
newSessionState = addDummyFirstBlockToGroupIfMissing(
|
||||
`virtual-${event.id}-block`,
|
||||
newBlockId,
|
||||
newSessionState,
|
||||
{
|
||||
groupId: nextGroup.id,
|
||||
@ -88,6 +89,6 @@ export const executeCommandEvent = ({ state, command }: Props) => {
|
||||
);
|
||||
return {
|
||||
...newSessionState,
|
||||
currentBlockId: `virtual-${event.id}`,
|
||||
currentBlockId: newBlockId,
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user