mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-30 06:00:26 +01:00
Fix the local API about tab for channels without a joined date (#4508)
This commit is contained in:
parent
703505afe0
commit
bb83a9dea5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user