Skip to content

Commit f3d2bf2

Browse files
committed
fix: fix for blog section [ECO-184]
1 parent adc45f0 commit f3d2bf2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/BlogSection.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
/>
2323
<div class="featured-content">
2424
<h3>{{ index.title }}</h3>
25-
<!-- <p v-html="index.body.slice(0, 255)" /> -->
25+
<p
26+
v-if="typeof index.body === 'string'"
27+
v-html="index.body.slice(0, 255)"
28+
/>
2629
<p>
2730
<router-link class="blogpost-readmore" :to="index.url">
2831
Read More -->

src/views/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
contentTypeUid: 'page',
3333
entryUrl: `${this.$route.fullPath}`,
3434
referenceFieldPath: ['page_components.from_blog.featured_blogs'],
35-
jsonRtePath: []
35+
jsonRtePath: ['page_components.from_blog.featured_blogs.body']
3636
});
3737
this.data = response[0];
3838
this.$store.dispatch('setPage', response[0]);

0 commit comments

Comments
 (0)