diff --git a/apps/builder/src/features/blocks/logic/typebotLink/components/TypebotLinkForm/TypebotLinkForm.tsx b/apps/builder/src/features/blocks/logic/typebotLink/components/TypebotLinkForm/TypebotLinkForm.tsx index f54739d5609..b7ec7e9d242 100644 --- a/apps/builder/src/features/blocks/logic/typebotLink/components/TypebotLinkForm/TypebotLinkForm.tsx +++ b/apps/builder/src/features/blocks/logic/typebotLink/components/TypebotLinkForm/TypebotLinkForm.tsx @@ -22,6 +22,7 @@ export const TypebotLinkForm = ({ options, onOptionsChange }: Props) => { {typebot && ( void } export const TypebotsDropdown = ({ + idsToExclude, typebotId, onSelectTypebotId, currentWorkspaceId, @@ -51,19 +53,21 @@ export const TypebotsDropdown = ({ label: 'Current typebot', value: 'Current typebot', }, - ...(typebots ?? []).map((typebot) => ({ - value: typebot.name, - label: ( - - - {typebot.name} - - ), - })), + ...(typebots ?? []) + .filter((typebot) => !idsToExclude.includes(typebot.id)) + .map((typebot) => ({ + value: typebot.name, + label: ( + + + {typebot.name} + + ), + })), ]} onValueChange={handleTypebotSelect} placeholder={'Select a typebot'}