Skip to content

Commit

Permalink
correct logic
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Jul 31, 2024
1 parent da3dc55 commit 9345646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/legend/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function parseLegendForChannel(model: UnitModel, channel: NonPositionScal
const value = property in legendRules ? legendRules[property](ruleParams) : (legend as any)[property];
if (value !== undefined) {
const explicit = isExplicit(value, property, legend, model.fieldDef(channel));
if (explicit || hasKey(config.legend, property)) {
if (explicit || (config.legend as any)[property] === undefined) {
legendCmpt.set(property, value, explicit);
}
}
Expand Down

0 comments on commit 9345646

Please sign in to comment.