diff --git a/apps/builder/components/share/codeSnippets/params.ts b/apps/builder/components/share/codeSnippets/params.ts index 101a02541..a67dbb7e2 100644 --- a/apps/builder/components/share/codeSnippets/params.ts +++ b/apps/builder/components/share/codeSnippets/params.ts @@ -139,4 +139,4 @@ export const parseInitBubbleCode = ({ ) } -export const typebotJsHtml = `` +export const typebotJsHtml = `` diff --git a/apps/landing-page/next.config.js b/apps/landing-page/next.config.js index 745582e4d..51200b28a 100644 --- a/apps/landing-page/next.config.js +++ b/apps/landing-page/next.config.js @@ -24,7 +24,7 @@ module.exports = withBundleAnalyzer({ }, { source: '/typebot-lib/v2', - destination: 'https://unpkg.com/typebot-js@2.1.1/dist/index.umd.min.js', + destination: 'https://unpkg.com/typebot-js@2.1.3/dist/index.umd.min.js', permanent: true, }, ] diff --git a/apps/viewer/pages/api/typebots/[typebotId]/results.ts b/apps/viewer/pages/api/typebots/[typebotId]/results.ts index 9bb596fb1..732eb3020 100644 --- a/apps/viewer/pages/api/typebots/[typebotId]/results.ts +++ b/apps/viewer/pages/api/typebots/[typebotId]/results.ts @@ -14,14 +14,12 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => { }) if (!typebot) return res.status(400).send({ message: 'Typebot not found' }) const limit = Number(req.query.limit) - console.log(limit, typebot.id) const results = (await prisma.result.findMany({ where: { typebotId: typebot.id }, orderBy: { createdAt: 'desc' }, take: limit, include: { answers: true }, })) as unknown as ResultWithAnswers[] - console.log(results) return res.send({ results: results.map(parseAnswers(typebot as unknown as Typebot)), })