Fix file submissions preview
This commit is contained in:
@@ -138,7 +138,7 @@ useOpnSeoMeta({
|
||||
})
|
||||
useHead({
|
||||
titleTemplate: (titleChunk) => {
|
||||
if (form && form.value.is_pro && form.value.seo_meta.page_title) {
|
||||
if (form && form.value?.is_pro && form.value?.seo_meta.page_title) {
|
||||
// Disable template if custom SEO title
|
||||
return titleChunk
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ export default {
|
||||
},
|
||||
redirectIfSubscribed () {
|
||||
if (this.user.is_subscribed) {
|
||||
this.$logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
||||
useAmplitude().logEvent('subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' })
|
||||
this.$crisp.push(['set', 'session:event', [[['subscribed', { plan: this.user.has_enterprise_subscription ? 'enterprise' : 'pro' }, 'blue']]]])
|
||||
this.$router.push({ name: 'home' })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user