แก้ดัก id

This commit is contained in:
STW_TTTY\stwtt 2024-08-29 16:52:45 +07:00
parent f34e62713a
commit 0afa3a07ee

View file

@ -211,7 +211,7 @@ function onSubmit() {
selectType: choice.value,
selectTypeYear: formData.year ? formData.year.toString() : null,
selectTypeId: projectName.value.id ? projectName.value.id : null,
selectTypeId: projectName.value ? projectName.value.id : null,
};
showLoader();
http[id.value ? "put" : "post"](url, body)