improved task view:

parent task no longer disappears when task is updated

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-09-08 22:31:56 +02:00
parent 14656a813c
commit e8e215f24c

View File

@@ -143,7 +143,9 @@
}); });
if (resp.ok){ if (resp.ok){
error = null; error = null;
let old_task = task;
task = await resp.json(); task = await resp.json();
if (task.parent_id == old_task.parent_id) task.parent = old_task.parent;
return true; return true;
} else { } else {
error = await resp.text(); error = await resp.text();