Fix custom license being empty when editing a project. (#527)

This commit is contained in:
Ellemes
2022-06-04 19:02:04 +01:00
committed by GitHub
parent 164ba46259
commit 0b16839d7f

View File

@@ -484,7 +484,9 @@ export default {
switch (newValue.short) {
case 'custom':
this.license_url = ''
if (oldValue === null || oldValue.short !== '') {
this.license_url = ''
}
break
default:
this.license_url = `https://cdn.modrinth.com/licenses/${newValue.short}.txt`