mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-28 21:01:28 +08:00
🚑 Properly preprocess typebot version
This commit is contained in:
parent
06ecdf040e
commit
793218a673
@ -5,6 +5,7 @@ export const preprocessTypebot = (typebot: any) => {
|
||||
if (!typebot || typebot.version === '5') return typebot
|
||||
return {
|
||||
...typebot,
|
||||
version: typebot.version === undefined ? null : typebot.version,
|
||||
groups: typebot.groups ? typebot.groups.map(preprocessGroup) : [],
|
||||
edges: typebot.edges
|
||||
? typebot.edges?.filter((edge: any) => edgeSchema.safeParse(edge).success)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user