2
0

🚑 (buttons) Fix content mapping on searchable multiple items

This commit is contained in:
Baptiste Arnaud
2023-04-27 08:01:19 +02:00
parent 5b4a6c523d
commit 7896e3d732
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@typebot.io/js", "name": "@typebot.io/js",
"version": "0.0.41", "version": "0.0.42",
"description": "Javascript library to display typebots on your website", "description": "Javascript library to display typebots on your website",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -37,6 +37,7 @@ export const SearchableMultipleChoicesForm = (props: Props) => {
props.onSubmit({ props.onSubmit({
value: props.defaultItems value: props.defaultItems
.filter((item) => selectedItemIds().includes(item.id)) .filter((item) => selectedItemIds().includes(item.id))
.map((item) => item.content)
.join(', '), .join(', '),
}) })

View File

@ -1,6 +1,6 @@
{ {
"name": "@typebot.io/react", "name": "@typebot.io/react",
"version": "0.0.41", "version": "0.0.42",
"description": "React library to display typebots on your website", "description": "React library to display typebots on your website",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",