Skip to content

Commit

Permalink
馃悰 (editor) Fix text bubble update conflict when deleting group
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 2, 2024
1 parent af4dd95 commit 7ce6d73
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const blocksAction = (setTypebot: SetTypebot): BlocksActions => ({
) =>
setTypebot((typebot) =>
produce(typebot, (typebot) => {
if (!typebot.groups[groupIndex]?.blocks[blockIndex]) return
const block = typebot.groups[groupIndex].blocks[blockIndex]
typebot.groups[groupIndex].blocks[blockIndex] = { ...block, ...updates }
})
Expand Down

0 comments on commit 7ce6d73

Please sign in to comment.