diff --git a/apps/viewer/src/features/blocks/logic/setVariable/api/utils/executeSetVariable.ts b/apps/viewer/src/features/blocks/logic/setVariable/api/utils/executeSetVariable.ts index d6ec64451..a2f198907 100644 --- a/apps/viewer/src/features/blocks/logic/setVariable/api/utils/executeSetVariable.ts +++ b/apps/viewer/src/features/blocks/logic/setVariable/api/utils/executeSetVariable.ts @@ -44,7 +44,6 @@ const evaluateSetVariableExpression = const func = Function(...variables.map((v) => v.id), evaluating) return func(...variables.map((v) => parseCorrectValueType(v.value))) } catch (err) { - console.log(`Evaluating: ${evaluating}`, err) return str } } diff --git a/apps/viewer/src/pages/[[...publicId]].tsx b/apps/viewer/src/pages/[[...publicId]].tsx index 6907cae44..57b1d1f38 100644 --- a/apps/viewer/src/pages/[[...publicId]].tsx +++ b/apps/viewer/src/pages/[[...publicId]].tsx @@ -32,12 +32,6 @@ export const getServerSideProps: GetServerSideProps = async ( const publishedTypebot = isMatchingViewerUrl ? await getTypebotFromPublicId(context.query.publicId?.toString()) : await getTypebotFromCustomDomain(customDomain) - if (!publishedTypebot) - console.log( - isMatchingViewerUrl - ? `Couldn't find publicId: ${context.query.publicId?.toString()}` - : `Couldn't find customDomain: ${customDomain}` - ) const headCode = publishedTypebot?.settings.metadata.customHeadCode return { props: { diff --git a/apps/viewer/src/pages/next/[[...publicId]].tsx b/apps/viewer/src/pages/next/[[...publicId]].tsx index 51a61b4a8..2aa0c53d5 100644 --- a/apps/viewer/src/pages/next/[[...publicId]].tsx +++ b/apps/viewer/src/pages/next/[[...publicId]].tsx @@ -26,12 +26,6 @@ export const getServerSideProps: GetServerSideProps = async ( const typebot = isMatchingViewerUrl ? await getTypebotFromPublicId(context.query.publicId?.toString()) : null - if (!typebot) - console.log( - isMatchingViewerUrl - ? `Couldn't find publicId: ${context.query.publicId?.toString()}` - : `Couldn't find customDomain` - ) return { props: { typebot, diff --git a/packages/bot-engine/src/features/blocks/logic/setVariable/utils/executeSetVariable.ts b/packages/bot-engine/src/features/blocks/logic/setVariable/utils/executeSetVariable.ts index 9f218a770..218302cba 100644 --- a/packages/bot-engine/src/features/blocks/logic/setVariable/utils/executeSetVariable.ts +++ b/packages/bot-engine/src/features/blocks/logic/setVariable/utils/executeSetVariable.ts @@ -30,7 +30,6 @@ const evaluateSetVariableExpression = const func = Function(...variables.map((v) => v.id), evaluating) return func(...variables.map((v) => parseCorrectValueType(v.value))) } catch (err) { - console.log(`Evaluating: ${evaluating}`, err) return str } }