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 c50f584 commit 6e604ec
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy-backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: DeployBackendDev

on:
push:
branches:
- "master"


jobs:
deploy-backend-dev:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: DeployFrontendDev

on:
push:
branches:
- "master"


jobs:
deploy-frontend-dev:
Expand Down
17 changes: 10 additions & 7 deletions nuxt-frontend/pages/portfolio/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ import CaseStudy from "@/components/home-new/CaseStudy.vue";
import { defineAsyncComponent } from "vue";
import { elementInViewPort } from "@/utils.js";
const UserReview = defineAsyncComponent(
() => import("@/components/home-new/UserReview.vue"),
const UserReview = defineAsyncComponent(() =>
import("@/components/home-new/UserReview.vue")
);
const CTASection = defineAsyncComponent(
() => import("@/components/home-new/CTASection.vue"),
const CTASection = defineAsyncComponent(() =>
import("@/components/home-new/CTASection.vue")
);
const NewFooter = defineAsyncComponent(
() => import("@/components/partials/NewFooter.vue"),
const NewFooter = defineAsyncComponent(() =>
import("@/components/partials/NewFooter.vue")
);
const { $mixpanel } = useNuxtApp();
const casestudy = ref(null);
const userReview = ref(null);
const ctasection = ref(null);
const footer = ref(null);
const seoData = config.PORTFOLIO_SEO_META_DATA;
Expand All @@ -52,7 +53,9 @@ let elements;
onMounted(() => {
elements = ref({
casestudy: casestudy,
userReview: userReview,
ctasection: ctasection,
footer: footer,
});
window.addEventListener("scroll", sendEvent);
Expand Down
1 change: 1 addition & 0 deletions nuxt-frontend/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useElementVisibility } from "@vueuse/core";
import mixpanel from "mixpanel-browser";

function elementInViewPort(refs) {
console.log(refs)
let element;
for (const key of Object.keys(refs)) {
if (refs[key] && refs[key].length > 0) {
Expand Down

0 comments on commit 6e604ec

Please sign in to comment.