소스 검색

update tasks after update current task

Petr 4 년 전
부모
커밋
4a2dfdb036
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 !== 0) {
+    if (document.querySelector('#taskFormContainer #task_id').value !== "0") {
         return updateTask()
     }