Skip to content

Commit

Permalink
fix(pipeline-builder): fix pipeline builder not correctly handle deep…
Browse files Browse the repository at this point in the history
… nested object referenced link (#857)

Because

- fix pipeline builder not correctly handle deep nested object
referenced link

This commit

- fix pipeline builder not correctly handle deep nested object
referenced link
  • Loading branch information
EiffelFly committed Jan 3, 2024
1 parent f655d92 commit edab862
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ function checkReferenceIsAvailable(
const firstThreeLayersOfReferenceValueWithoutArray =
referenceValueWithoutArray.split(".").slice(0, 3).join(".");

if (availableReference === firstThreeLayersOfReferenceValueWithoutArray) {
if (
firstThreeLayersOfReferenceValueWithoutArray.includes(availableReference)
) {
return true;
}

Expand Down

0 comments on commit edab862

Please sign in to comment.