Fix custom license being empty when editing a project. (#527)
This commit is contained in:
1 parent
164ba46259
commit
0b16839d7f
1 file changed
+3
-1
@@ -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