Skip to content

Commit

Permalink
Update src/transforms/interval.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil authored Sep 24, 2021
1 parent 7afd9cd commit 216eac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transforms/interval.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function maybeInterval(interval) {
// The interval may be specified either as x: {value, interval} or as {x,
// interval}. The former is used, for example, for Plot.rect.
function maybeIntervalValue(value, {interval} = {}) {
(value = {...maybeValue(value)});
value = {...maybeValue(value)};
value.interval = maybeInterval(value.interval === undefined ? interval : value.interval);
return value;
}
Expand Down

0 comments on commit 216eac0

Please sign in to comment.