chore: fix posthog init condition

This commit is contained in:
Jannat Patel
2025-05-26 15:02:51 +05:30
parent 69107d4441
commit c9ccf9a1b5
3 changed files with 84 additions and 97 deletions

View File

@@ -15,7 +15,6 @@ import DesktopLayout from './components/DesktopLayout.vue'
import MobileLayout from './components/MobileLayout.vue'
import NoSidebarLayout from './components/NoSidebarLayout.vue'
import { stopSession } from '@/telemetry'
import { init as initTelemetry } from '@/telemetry'
import { usersStore } from '@/stores/user'
import { useRouter } from 'vue-router'
@@ -44,10 +43,6 @@ const Layout = computed(() => {
return DesktopLayout
})
onMounted(async () => {
if (userResource.data) await initTelemetry()
})
onUnmounted(() => {
noSidebar.value = false
stopSession()