Skip to content

Commit

Permalink
fix error with timescale
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Jun 3, 2024
1 parent baf310f commit 53dd60b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/timescale/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ function Timescale(props: TimescaleProps) {
const className = classNames(orientation, "increase-" + increaseDirection);
const length = absoluteAgeScale ? l ?? 6000 : null;

let ageRange2 = [...ageRange] ?? [timescale.eag, timescale.lag];
let ageRange2 = null;
if (ageRange != null) {
ageRange2 = [...ageRange];
}
if (ageRange2 == null) {
ageRange2 = [timescale.eag, timescale.lag];
}
if (
orientation == TimescaleOrientation.VERTICAL &&
increaseDirection == IncreaseDirection.DOWN_LEFT &&
Expand Down

0 comments on commit 53dd60b

Please sign in to comment.