From c4b735ea9d6cc61a593725bae578da9be72c1597 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Tue, 14 May 2024 15:34:47 +0100 Subject: [PATCH] More direct check --- grafast/grafast/src/engine/OutputPlan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }