fix: if no atomLink, don't crash
Some checks failed
repod / xml (push) Successful in 13s
repod / php (push) Failing after 53s
repod / nodejs (push) Successful in 2m22s
repod / release (push) Has been skipped

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