Skip to content

Commit

Permalink
fix: ensure we dont use interval if it is <= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jan 9, 2024
1 parent e9cf5a5 commit 1a54b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charting/components/AxisBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export abstract class AxisBase extends ComponentBase {
public setForcedInterval(interval) {
this.mForcedInterval = interval;
// set this to true if it was disabled, as it makes no sense to call this method with forcedInterval disabled
this.mForcedIntervalEnabled = true;
this.mForcedIntervalEnabled = interval > 0;
}
/**
* @return the force interval
Expand Down

0 comments on commit 1a54b45

Please sign in to comment.