fix: if no atomLink, don't crash
This commit is contained in:
parent
754a14b099
commit
a5f219d363
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user