Skip to content

Commit

Permalink
Add missing parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Jun 24, 2024
1 parent 6c1b7f2 commit 0d4d23f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/TreeView/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ async function createCustomTreeNode(
if (customDom) {
const id = customDom.id;
const parentId =
customDom.parentId || id.length > 1
? id.substring(0, id.length - 2)
: rootId;
customDom.parentId ||
(id.length > 1 ? id.substring(0, id.length - 2) : rootId);
const parent = await getSemanticDomainTreeNode(parentId, customDom.lang);
const next = parent?.children.length ? parent.children[0] : undefined;
return { ...treeNodeFromSemDom(customDom), parent, next };
Expand Down

0 comments on commit 0d4d23f

Please sign in to comment.