Added additional check whether the publishedText of a list video element is null. Fixes the problem for topic videos.

This commit is contained in:
Luca 2020-10-02 13:55:02 +02:00
parent dd0f8f3aa9
commit 2249e113d0
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ export default Vue.extend({
this.isLive = this.data.liveNow
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
this.toLocalePublicationString({
publishText: this.data.publishedText,