diff --git a/grafast/grafast/src/engine/OutputPlan.ts b/grafast/grafast/src/engine/OutputPlan.ts index 7453598e4f..0ecb538ffd 100644 --- a/grafast/grafast/src/engine/OutputPlan.ts +++ b/grafast/grafast/src/engine/OutputPlan.ts @@ -731,7 +731,7 @@ export function getChildBucketAndIndex( "GrafastInternalError<83d0e3cc-7eec-4185-85b4-846540288162>: arrayIndex must be supplied iff outputPlan is an array", ); } - if (outputPlan && childOutputPlan.layerPlan === bucket.layerPlan) { + if (outputPlan != null && childOutputPlan.layerPlan === bucket.layerPlan) { // Same layer; straightforward return [bucket, bucketIndex]; }