Skip to content

Commit

Permalink
Fix runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-jagruti-a committed Nov 23, 2023
1 parent f4961ea commit 403afa1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions nuxt-frontend/pages/jobs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
v-on:add-animation="handleAnimationOnScroll"
/>
<Career id="career" />
<FaqSection v-on:add-animation="handleAnimationOnScroll" />
<NewFooter ref="footer" />
<FaqSection v-on:add-animation="handleAnimationOnScroll" ref="faq" />
</div>
</template>

Expand Down Expand Up @@ -47,14 +46,11 @@ const WhyCanopasMobile = defineAsyncComponent(() =>
const FaqSection = defineAsyncComponent(() =>
import("@/components/jobs/FaqSection.vue")
);
const NewFooter = defineAsyncComponent(() =>
import("@/components/partials/NewFooter.vue")
);
const { $mixpanel } = useNuxtApp();
const perks = ref(null);
const footer = ref(null);
const faq = ref(null);
const seoData = config.JOBS_SEO_META_DATA;
useSeoMeta({
Expand All @@ -69,15 +65,15 @@ useSeoMeta({
let event = "";
let events = {
perks: "view_perks_benefits",
footer: "view_jobs_footer",
faq: "view_jobs_faq",
};
let elements;
onMounted(() => {
elements = ref({
perks: perks,
footer: footer,
faq: faq,
});
window.addEventListener("scroll", sendEvent);
$mixpanel.track("view_jobs_page");
Expand Down

0 comments on commit 403afa1

Please sign in to comment.