@zeniai/client-epic-state 4.19.96-beta2ND → 4.19.96-beta4ND

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,7 +162,7 @@ function buildHorizontalSubAccountAncestorMetadata(dfsOrderedAccountRows, curren
162
162
  return ancestorRowIndicesRootToLeaf.map((rowIndex) => {
163
163
  const siblingIndices = getHorizontalAccountSiblingIndices(dfsOrderedAccountRows, rowIndex);
164
164
  return {
165
- depth: Math.max(0, dfsOrderedAccountRows[rowIndex].depth - 1),
165
+ depth: dfsOrderedAccountRows[rowIndex].depth - 2,
166
166
  hasSibling: siblingIndices.length > 1,
167
167
  hasChildren: horizontalAccountHasChildRows(dfsOrderedAccountRows, rowIndex),
168
168
  isLastNode: rowIndex === siblingIndices[siblingIndices.length - 1],
@@ -186,7 +186,7 @@ function buildHorizontalAccountChildIndicesByParent(dfsOrderedAccountRows) {
186
186
  return childIndicesByParentRowIndex;
187
187
  }
188
188
  function buildHorizontalTreeView(dfsOrderedAccountRows, currentRowIndex) {
189
- const treeDepth = Math.max(0, dfsOrderedAccountRows[currentRowIndex].depth - 1);
189
+ const treeDepth = Math.max(0, dfsOrderedAccountRows[currentRowIndex].depth - 2);
190
190
  const siblingIndices = getHorizontalAccountSiblingIndices(dfsOrderedAccountRows, currentRowIndex);
191
191
  const hasChildren = horizontalAccountHasChildRows(dfsOrderedAccountRows, currentRowIndex);
192
192
  return {