Skip to content

Commit

Permalink
Data explorer filter: exclude "this" variable (entity) in basic expre…
Browse files Browse the repository at this point in the history
…ssion builder
  • Loading branch information
SteRiccio committed Oct 22, 2024
1 parent 7019c8b commit 18783dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/components/expression/expressionVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const getVariablesGroupedByParentUuid = ({
// sort groups by hierarchy level, in descending order
.sort((groupA, groupB) => groupB.hierarchyLevel - groupA.hierarchyLevel)

if (!nodeDefCurrent || excludeCurrentNodeDef || !includeThis) {
if (!nodeDefCurrent || excludeCurrentNodeDef || !includeThis || NodeDef.isEntity(nodeDefCurrent)) {
return groups
}
// always show current variable at the beginning
Expand Down

0 comments on commit 18783dc

Please sign in to comment.