Skip to content

Commit 21d2a2d

Browse files
committed
Pass PathLeaf even if "scoped from" another expr
TODO: why does this fix it? Maybe it's being erroneously marked as scoped-from in this case?
1 parent 3a05df4 commit 21d2a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/generate/src/syntax/toEdgeQL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function walkExprTree(
397397

398398
const expr = _expr as SomeExpression;
399399

400-
if ((expr as any).__scopedFrom__ != null) {
400+
if ((expr as any).__scopedFrom__ != null && expr.__kind__ !== ExpressionKind.PathLeaf) {
401401
// If expr is marked as being a scoped copy of another expr, treat it as
402402
// an opaque reference and don't walk it. The enclosing select/update that
403403
// owns the scope will walk the actual unscoped expr.

0 commit comments

Comments
 (0)