Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -50,7 +50,7 @@ export struct CardSourceInfo { | @@ -50,7 +50,7 @@ export struct CardSourceInfo { | ||
| 50 | 50 | ||
| 51 | processText() { | 51 | processText() { |
| 52 | const sourceText = this.contentDTO.rmhPlatform === 1 ? this.contentDTO.rmhInfo?.rmhName : this.contentDTO.source; | 52 | const sourceText = this.contentDTO.rmhPlatform === 1 ? this.contentDTO.rmhInfo?.rmhName : this.contentDTO.source; |
| 53 | - if (this.isLimited() && sourceText.length > this.maxLength) { | 53 | + if (sourceText && this.isLimited() && sourceText.length > this.maxLength) { |
| 54 | this.displayText = sourceText.substring(0, this.maxLength) + '...'; | 54 | this.displayText = sourceText.substring(0, this.maxLength) + '...'; |
| 55 | this.isEllipsisActive = true; | 55 | this.isEllipsisActive = true; |
| 56 | } else { | 56 | } else { |
-
Please register or login to post a comment