mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fixed undefined post problem
This commit is contained in:
parent
051c7acd4f
commit
72ae881d9a
@ -57,7 +57,7 @@
|
|||||||
<ds-space margin-bottom="small" />
|
<ds-space margin-bottom="small" />
|
||||||
<content-viewer class="content hyphenate-text" :content="post.content" />
|
<content-viewer class="content hyphenate-text" :content="post.content" />
|
||||||
<!-- Eventdata -->
|
<!-- Eventdata -->
|
||||||
<ds-space v-if="post.postType[0] === 'Event'" margin-bottom="small">
|
<ds-space v-if="post && post.postType[0] === 'Event'" margin-bottom="small">
|
||||||
<ds-flex>
|
<ds-flex>
|
||||||
<ds-flex-item width="200px">Start:</ds-flex-item>
|
<ds-flex-item width="200px">Start:</ds-flex-item>
|
||||||
<ds-flex-item>{{ post.eventStart }}</ds-flex-item>
|
<ds-flex-item>{{ post.eventStart }}</ds-flex-item>
|
||||||
@ -192,7 +192,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
links,
|
links,
|
||||||
post: {postType: ['Article']},
|
post: null,
|
||||||
ready: false,
|
ready: false,
|
||||||
title: 'loading',
|
title: 'loading',
|
||||||
showNewCommentForm: true,
|
showNewCommentForm: true,
|
||||||
@ -237,7 +237,7 @@ export default {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
heading() {
|
heading() {
|
||||||
if (this.post.postType[0] === 'Event') return this.$t('post.viewEvent.title')
|
if (this.post?.postType[0] === 'Event') return this.$t('post.viewEvent.title')
|
||||||
return this.$t('post.viewPost.title')
|
return this.$t('post.viewPost.title')
|
||||||
},
|
},
|
||||||
menuModalsData() {
|
menuModalsData() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user