🐛 Fix crash on toast show up due to tolgee provider not defined
This commit is contained in:
@@ -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>
|
||||||
</>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user