Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jul 31, 2024
1 parent ca57633 commit b2c5130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compile/scale/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ function parseSelectionDomain(model: UnitModel, channel: ScaleChannel) {
const scale = model.component.scales[channel];
const spec = model.specifiedScales[channel].domain;
const bin = model.fieldDef(channel)?.bin;
const domain = isParameterDomain(spec) && spec;
const extent = isBinParams(bin) && isParameterExtent(bin.extent) && bin.extent;
const domain = isParameterDomain(spec) ? spec : undefined;
const extent = isBinParams(bin) && isParameterExtent(bin.extent) ? bin.extent : undefined;

if (domain || extent) {
// As scale parsing occurs before selection parsing, we cannot set
Expand Down

0 comments on commit b2c5130

Please sign in to comment.