From b3872ad895bfc476cc25fcdd837c81e96c1901cc Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Thu, 14 Nov 2024 20:55:14 -0500 Subject: [PATCH] fix: fix incorrect ?? --- src/compile/selection/scales.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile/selection/scales.ts b/src/compile/selection/scales.ts index 60f9b7f59a..49b176455b 100644 --- a/src/compile/selection/scales.ts +++ b/src/compile/selection/scales.ts @@ -99,5 +99,5 @@ export function domain(model: UnitModel, channel: ScaleChannel) { } function isTopLevelLayer(model: Model): boolean { - return model.parent && isLayerModel(model.parent) && (!model.parent.parent ?? isTopLevelLayer(model.parent.parent)); + return model.parent && isLayerModel(model.parent) && (!model.parent.parent || isTopLevelLayer(model.parent.parent)); }