From e584cf22f79603a1e98100609e479bd534179dff Mon Sep 17 00:00:00 2001 From: IRHM <37304121+IRHM@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:20:37 +0100 Subject: [PATCH] import: ryot: add ended_on check before parsing date idk --- src/routes/(app)/import/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(app)/import/+page.svelte b/src/routes/(app)/import/+page.svelte index 9404d5b5..d16558c7 100644 --- a/src/routes/(app)/import/+page.svelte +++ b/src/routes/(app)/import/+page.svelte @@ -499,7 +499,7 @@ seasonNumber: episode.show_season_number, episodeNumber: episode.show_episode_number, - createdAt: new Date(episode.ended_on) + createdAt: episode.ended_on ? new Date(episode.ended_on) : undefined })) : undefined };