⚡ (analytics) Improve analytics graph accuracy
This commit is contained in:
@@ -27,7 +27,7 @@ const App = ({ Component, pageProps }: AppProps) => {
|
||||
const { query, pathname } = useRouter()
|
||||
|
||||
useEffect(() => {
|
||||
if (pathname.endsWith('/edit')) {
|
||||
if (pathname.endsWith('/edit') || pathname.endsWith('/analytics')) {
|
||||
document.body.style.overflow = 'hidden'
|
||||
document.body.classList.add('disable-scroll-x-behavior')
|
||||
} else {
|
||||
|
||||
@@ -5,6 +5,7 @@ import { methodNotAllowed, notAuthenticated } from '@typebot.io/lib/api'
|
||||
import { getAuthenticatedUser } from '@/features/auth/helpers/getAuthenticatedUser'
|
||||
import { canReadTypebots } from '@/helpers/databaseRules'
|
||||
|
||||
// TODO: Delete (deprecated)
|
||||
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
const user = await getAuthenticatedUser(req, res)
|
||||
if (!user) return notAuthenticated(res)
|
||||
|
||||
Reference in New Issue
Block a user