We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3967bd commit f76ee2aCopy full SHA for f76ee2a
src/view/view.ts
@@ -172,7 +172,7 @@ export class ViewService {
172
// plus the depth of the state that is populating the uiView
173
function uiViewDepth(uiView: ActiveUIView) {
174
const stateDepth = (context: ViewContext) =>
175
- context.parent ? stateDepth(context.parent) + 1 : 1;
+ context && context.parent ? stateDepth(context.parent) + 1 : 1;
176
return (uiView.fqn.split(".").length * 10000) + stateDepth(uiView.creationContext);
177
}
178
0 commit comments