From a5f219d363563de376fa7d06f131e2c78a5575ce Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 13 Jan 2024 00:16:42 +0100 Subject: [PATCH] fix: if no atomLink, don't crash --- src/views/Feed.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Feed.vue b/src/views/Feed.vue index 75f32f8..bc9aa4c 100644 --- a/src/views/Feed.vue +++ b/src/views/Feed.vue @@ -53,7 +53,7 @@ export default { try { const podcastData = await axios.get(generateUrl('/apps/repod/podcast?url={url}', { url: this.url })) - if (podcastData.data.atomLink !== this.url) { + if (podcastData.data.atomLink && podcastData.data.atomLink !== this.url) { this.$router.push(toUrl(podcastData.data.atomLink)) }