Fix the local API about tab for channels without a joined date (#4508)

This commit is contained in:
absidue 2024-01-02 17:54:51 +01:00 committed by GitHub
parent 703505afe0
commit bb83a9dea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -770,7 +770,7 @@ export default defineComponent({
const videoCount = extractNumberFromString(metadata.video_count)
this.videoCount = isNaN(videoCount) ? null : videoCount
this.joined = metadata.joined_date.isEmpty() ? 0 : new Date(metadata.joined_date.text.replace('Joined').trim())
this.joined = metadata.joined_date && !metadata.joined_date.isEmpty() ? new Date(metadata.joined_date.text.replace('Joined').trim()) : 0
this.location = metadata.country ?? null
}