Skip to content

Commit

Permalink
Rename slice and instances to avoid name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrecoin committed Oct 12, 2020
1 parent a96253e commit d4dc0a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions components/SliceZone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
<template v-if="slice.slice_type === 'process'">
<process-slice :slice="slice" />
</template>
<template v-if="slice.slice_type === 'logos'">
<logos-slice :slice="slice" />
<template v-if="slice.slice_type === 'partners_logos'">
<partners-logos-slice :slice="slice" />
</template>
</section>
</div>
Expand All @@ -71,7 +71,7 @@ import PopInCampaigns from '@/components/slices/PopInCampaigns'
import PageSection from '@/components/slices/PageSection'
import WebSnippet from '@/components/slices/WebSnippet'
import FeaturesSlice from '@/components/slices/Features'
import LogosSlice from '@/components/slices/Logos'
import PartnersLogosSlice from '@/components/slices/PartnerLogos'
export default {
name: 'SliceZone',
Expand All @@ -86,7 +86,7 @@ export default {
WebSnippet,
FeaturesSlice,
ProcessSlice,
LogosSlice,
PartnersLogosSlice,
},
props: {
slices: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<script>
export default {
name: 'LogosSlice',
name: 'PartnersLogosSlice',
props: {
slice: {
type: Object,
Expand Down
1 change: 1 addition & 0 deletions pages/pix-site/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
const document = await documentFetcher(app.$prismic, app.i18n, req).get(
documents.index
)
console.log(document)
return {
currentPagePath,
meta: document.data.meta,
Expand Down

0 comments on commit d4dc0a2

Please sign in to comment.