Skip to content

Commit

Permalink
import: ryot: add ended_on check before parsing date
Browse files Browse the repository at this point in the history
idk
  • Loading branch information
IRHM committed Oct 15, 2024
1 parent c7bb7a2 commit e584cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(app)/import/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit e584cf2

Please sign in to comment.