From bb83a9dea5db67a4033b4d602e78c839164a8352 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:54:51 +0100 Subject: [PATCH] Fix the local API about tab for channels without a joined date (#4508) --- src/renderer/views/Channel/Channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js index 91221f255..39fc91a0e 100644 --- a/src/renderer/views/Channel/Channel.js +++ b/src/renderer/views/Channel/Channel.js @@ -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 }