2
0

feat(editor): ️ Rename variable button

This commit is contained in:
Baptiste Arnaud
2022-05-11 06:39:28 -07:00
parent ad3a140982
commit 2b56f83d43
2 changed files with 32 additions and 9 deletions

View File

@ -25,7 +25,7 @@ export const variablesAction = (setTypebot: SetTypebot): VariablesActions => ({
) =>
setTypebot((typebot) =>
produce(typebot, (typebot) => {
typebot.variables.map((v) =>
typebot.variables = typebot.variables.map((v) =>
v.id === variableId ? { ...v, ...updates } : v
)
})