Skip to content

Commit

Permalink
fix: build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amalcaraz committed Dec 11, 2023
1 parent c6cdd8f commit d930fef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/domain/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,11 @@ export class NodeManager {

protected parseResourceNodes(ccns: CCN[], crns: CRN[]): CCN[] {
const crnsMap = crns.reduce((ac, cu) => {
if (!cu.parent) return ac

const crns = (ac[cu.parent] = ac[cu.parent] || [])
crns.push(cu)

return ac
}, {} as Record<string, CRN[]>)

Expand All @@ -619,6 +622,8 @@ export class NodeManager {
}, {} as Record<string, CCN>)

return crns.map((crn) => {
if (!crn.parent) return crn

const parentData = ccnsMap[crn.parent]
if (!parentData) return crn

Expand Down

0 comments on commit d930fef

Please sign in to comment.