From 0b16839d7ff16ee90f4a3f5c69d61b3261953191 Mon Sep 17 00:00:00 2001 From: Ellemes <3llemes@gmail.com> Date: Sat, 4 Jun 2022 19:02:04 +0100 Subject: [PATCH] Fix custom license being empty when editing a project. (#527) --- pages/_type/_id/edit.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/_type/_id/edit.vue b/pages/_type/_id/edit.vue index 675b72e0..c1d19c28 100644 --- a/pages/_type/_id/edit.vue +++ b/pages/_type/_id/edit.vue @@ -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`