Skip to content

Commit 18049f6

Browse files
committed
fix namespace regression bug caused by parent.id.
1 parent 6f47f24 commit 18049f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ export function computeNamespace(pods, id) {
44
let res = [];
55
// if the pod is a pod, do not include its id
66
if (pods[id].type !== "DECK") {
7-
id = pods[id].parent.id;
7+
id = pods[id].parent;
88
}
99
while (id) {
1010
res.push(pods[id].name || id);
11-
id = pods[id].parent?.id;
11+
id = pods[id].parent;
1212
}
1313
return res.reverse().join("/");
1414
}

0 commit comments

Comments
 (0)