fix: if no atomLink, don't crash

This commit is contained in:
Michel Roux 2024-01-13 00:16:42 +01:00
parent 754a14b099
commit a5f219d363

View File

@ -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))
}