Skip to content

Commit

Permalink
fix: fix incorrect ??
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 15, 2024
1 parent 26a0d03 commit b3872ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/selection/scales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

0 comments on commit b3872ad

Please sign in to comment.