Procházet zdrojové kódy

update tasks after update current task

Petr před 4 roky
rodič
revize
4a2dfdb036
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()
     }