แก้ ไม่บังคับไฟล์

This commit is contained in:
setthawutttty 2024-01-10 18:07:26 +07:00
parent e9fc98bcd0
commit 8911c156ae

View file

@ -100,11 +100,7 @@ function validateForm() {
}
}
if (hasError.every((result) => result === true)) {
if (formData.files.length === 0) {
modalWarning($q, "ข้อความแจ้งเตือน", "กรุณาอัปโหลดไฟล์");
} else {
onSubmit(formData);
}
} else {
console.log("ไม่ผ่าน ");
console.log(hasError);