Skip to content

Commit 267e0cb

Browse files
authored
fix: license url not being removed when saving (#4874)
Closes: #4848
1 parent d471ef6 commit 267e0cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/frontend/src/pages/[type]/[id].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,10 +1746,10 @@ async function patchProject(resData, quiet = false) {
17461746
17471747
await updateProjectRoute()
17481748
1749-
if (resData.license_id) {
1749+
if ('license_id' in resData) {
17501750
project.value.license.id = resData.license_id
17511751
}
1752-
if (resData.license_url) {
1752+
if ('license_url' in resData) {
17531753
project.value.license.url = resData.license_url
17541754
}
17551755

0 commit comments

Comments
 (0)