diff --git a/web/app.js b/web/app.js
index 1afb48c..a874591 100644
--- a/web/app.js
+++ b/web/app.js
@@ -856,7 +856,7 @@ function renderTree() {
${caret}
- ${esc(t.title)}${esc(t.id.slice(-6))}
+ ${esc(t.title)}${esc(String(t.id || '').slice(-6))}
${(() => {
// blocked(系统按依赖自动落位)→ 显示在等哪几条
@@ -1000,7 +1000,7 @@ function renderParentOptions() {
const sel = document.querySelector('#newTaskPanel select[name=parentId]');
const cur = sel.value;
sel.innerHTML = `` +
- S.tasks.map((t) => ``).join('');
+ S.tasks.map((t) => ``).join('');
sel.value = cur;
}