2
0

🐛 Fix crash on toast show up due to tolgee provider not defined

This commit is contained in:
Baptiste Arnaud
2023-12-29 16:47:18 +01:00
parent 53b702e8b1
commit 7804ae2572

View File

@@ -60,25 +60,24 @@ const App = ({ Component, pageProps }: AppProps) => {
const typebotId = router.query.typebotId?.toString() const typebotId = router.query.typebotId?.toString()
return ( return (
<> <TolgeeProvider tolgee={ssrTolgee}>
<ToastContainer /> <ToastContainer />
<TolgeeProvider tolgee={ssrTolgee}> <ChakraProvider theme={customTheme}>
<ChakraProvider theme={customTheme}> <SessionProvider session={pageProps.session}>
<SessionProvider session={pageProps.session}> <UserProvider>
<UserProvider> <TypebotProvider typebotId={typebotId}>
<TypebotProvider typebotId={typebotId}> <WorkspaceProvider typebotId={typebotId}>
<WorkspaceProvider typebotId={typebotId}> <Component {...pageProps} />
<Component {...pageProps} /> {!router.pathname.endsWith('edit') && isCloudProdInstance() && (
{!router.pathname.endsWith('edit') && <SupportBubble />
isCloudProdInstance() && <SupportBubble />} )}
<NewVersionPopup /> <NewVersionPopup />
</WorkspaceProvider> </WorkspaceProvider>
</TypebotProvider> </TypebotProvider>
</UserProvider> </UserProvider>
</SessionProvider> </SessionProvider>
</ChakraProvider> </ChakraProvider>
</TolgeeProvider> </TolgeeProvider>
</>
) )
} }