Skip to content

Commit

Permalink
🐛 Fix crash on toast show up due to tolgee provider not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 29, 2023
1 parent 53b702e commit 7804ae2
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions apps/builder/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,24 @@ const App = ({ Component, pageProps }: AppProps) => {
const typebotId = router.query.typebotId?.toString()

return (
<>
<TolgeeProvider tolgee={ssrTolgee}>
<ToastContainer />
<TolgeeProvider tolgee={ssrTolgee}>
<ChakraProvider theme={customTheme}>
<SessionProvider session={pageProps.session}>
<UserProvider>
<TypebotProvider typebotId={typebotId}>
<WorkspaceProvider typebotId={typebotId}>
<Component {...pageProps} />
{!router.pathname.endsWith('edit') &&
isCloudProdInstance() && <SupportBubble />}
<NewVersionPopup />
</WorkspaceProvider>
</TypebotProvider>
</UserProvider>
</SessionProvider>
</ChakraProvider>
</TolgeeProvider>
</>
<ChakraProvider theme={customTheme}>
<SessionProvider session={pageProps.session}>
<UserProvider>
<TypebotProvider typebotId={typebotId}>
<WorkspaceProvider typebotId={typebotId}>
<Component {...pageProps} />
{!router.pathname.endsWith('edit') && isCloudProdInstance() && (
<SupportBubble />
)}
<NewVersionPopup />
</WorkspaceProvider>
</TypebotProvider>
</UserProvider>
</SessionProvider>
</ChakraProvider>
</TolgeeProvider>
)
}

Expand Down

0 comments on commit 7804ae2

Please sign in to comment.