Allow null changelogs

This commit is contained in:
Jai A
2020-10-25 09:15:04 -07:00
parent 7d7a6191ce
commit 7e488b0fa3

View File

@@ -140,8 +140,11 @@ export default {
version.author = members.find((x) => x.user_id === version.author_id)
res = await axios.get(version.changelog_url)
const changelog = xss(marked(res.data))
let changelog = ''
if (version.changelog_url) {
res = await axios.get(version.changelog_url)
changelog = xss(marked(res.data))
}
return {
mod,