@ -7,6 +7,7 @@ import {
|
|||||||
LogicBlockType,
|
LogicBlockType,
|
||||||
Typebot,
|
Typebot,
|
||||||
} from 'models'
|
} from 'models'
|
||||||
|
import { JumpBlock } from 'models/features/blocks/logic/jump'
|
||||||
import { blockHasItems, isDefined, isWebhookBlock, sendRequest } from 'utils'
|
import { blockHasItems, isDefined, isWebhookBlock, sendRequest } from 'utils'
|
||||||
|
|
||||||
export const importTypebotQuery = async (typebot: Typebot, userPlan: Plan) => {
|
export const importTypebotQuery = async (typebot: Typebot, userPlan: Plan) => {
|
||||||
@ -83,6 +84,14 @@ const duplicateTypebot = (
|
|||||||
groupId: groupIdsMapping.get(s.options.groupId as string),
|
groupId: groupIdsMapping.get(s.options.groupId as string),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
if (s.type === LogicBlockType.JUMP)
|
||||||
|
return {
|
||||||
|
...s,
|
||||||
|
options: {
|
||||||
|
...s.options,
|
||||||
|
groupId: groupIdsMapping.get(s.options.groupId as string),
|
||||||
|
} satisfies JumpBlock['options'],
|
||||||
|
}
|
||||||
if (blockHasItems(s))
|
if (blockHasItems(s))
|
||||||
return {
|
return {
|
||||||
...s,
|
...s,
|
||||||
|
Reference in New Issue
Block a user