Browse Source

update tasks after update current task

Petr 4 năm trước cách đây
mục cha
commit
66694a5ed5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/js/taskForm.js

+ 1 - 1
public/js/taskForm.js

@@ -2,7 +2,7 @@
 async function saveTask() {
     document.getElementsByClassName('errorsContainer')[0].innerHTML = "";
 
-    if (document.querySelector('#taskFormContainer #task_id').value) {
+    if (document.querySelector('#taskFormContainer #task_id').value !== 0) {
         return updateTask()
     }