From 672bd8b945c849d308fa972d166548ecd4b770ed Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 14 Apr 2020 12:07:21 +0200 Subject: [PATCH] update record to model in core --- packages/builder/src/components/common/core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/common/core.js b/packages/builder/src/components/common/core.js index 2f2134f23f..899a3e7a09 100644 --- a/packages/builder/src/components/common/core.js +++ b/packages/builder/src/components/common/core.js @@ -65,14 +65,14 @@ export const getPotentialReverseReferenceIndexes = (hierarchy, refIndex) => { return res } -export const getPotentialReferenceIndexes = (hierarchy, record) => +export const getPotentialReferenceIndexes = (hierarchy, model) => pipe(hierarchy, [ hierarchyFunctions.getFlattenedHierarchy, filter(hierarchyFunctions.isAncestorIndex), filter( i => - hierarchyFunctions.isAncestor(record)(i.parent()) || - i.parent().nodeId === record.parent().nodeId || + hierarchyFunctions.isAncestor(model)(i.parent()) || + i.parent().nodeId === model.parent().nodeId || hierarchyFunctions.isRoot(i.parent()) ), ])