(chatwoot) Add result URL custom attribute

This commit is contained in:
Baptiste Arnaud
2023-04-25 08:15:53 +02:00
parent 3529da210c
commit c09a84034e
5 changed files with 66 additions and 29 deletions

View File

@@ -9,7 +9,11 @@ export const extractVariablesFromText =
const variable = variables.find(
(variable) => variable.name === variableName
)
if (!variable) return acc
if (
!variable ||
acc.find((accVariable) => accVariable.id === variable.id)
)
return acc
return [...acc, variable]
}, [])
}