You've already forked AstralRinth
forked from didirus/AstralRinth
Fix custom license being empty when editing a project. (#527)
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user