Answer stability round 1: 0 🔴, 4 🟡 (0 misread); own-key rename lookup, test the host translator, name both id kinds in the conflict, keep admin unreserved

This commit is contained in:
2026-11-08 21:33:55 +01:00
parent dd39c7a07a
commit 8324a9c59e
7 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export function composeNav(
function renameTree(nodes: NavNode[], rename: Record<string, string>): NavNode[] {
return nodes.map((n) => {
const renamed = n.id != null ? rename[n.id] : undefined;
const renamed = n.id != null && Object.hasOwn(rename, n.id) ? rename[n.id] : undefined;
return {
...n,
label: renamed != null ? renamed : n.label,