Added additional check whether the publishedText of a list video element is null. Fixes the problem for topic videos.
This commit is contained in:
parent
dd0f8f3aa9
commit
2249e113d0
|
@ -253,7 +253,7 @@ export default Vue.extend({
|
||||||
this.isLive = this.data.liveNow
|
this.isLive = this.data.liveNow
|
||||||
this.viewCount = this.data.viewCount
|
this.viewCount = this.data.viewCount
|
||||||
|
|
||||||
if (typeof (this.data.publishedText) !== 'undefined' && !this.isLive) {
|
if (typeof (this.data.publishedText) !== 'undefined' && this.data.publishedText !== null && !this.isLive) {
|
||||||
// produces a string according to the template in the locales string
|
// produces a string according to the template in the locales string
|
||||||
this.toLocalePublicationString({
|
this.toLocalePublicationString({
|
||||||
publishText: this.data.publishedText,
|
publishText: this.data.publishedText,
|
||||||
|
|
Loading…
Reference in New Issue