mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
Fix custom license being empty when editing a project. (#527)
This commit is contained in:
@@ -484,7 +484,9 @@ export default {
|
|||||||
|
|
||||||
switch (newValue.short) {
|
switch (newValue.short) {
|
||||||
case 'custom':
|
case 'custom':
|
||||||
this.license_url = ''
|
if (oldValue === null || oldValue.short !== '') {
|
||||||
|
this.license_url = ''
|
||||||
|
}
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
this.license_url = `https://cdn.modrinth.com/licenses/${newValue.short}.txt`
|
this.license_url = `https://cdn.modrinth.com/licenses/${newValue.short}.txt`
|
||||||
|
|||||||
Reference in New Issue
Block a user