Skip to content

Commit 1a54b45

Browse files
committedJan 9, 2024
fix: ensure we dont use interval if it is <= 0
1 parent e9cf5a5 commit 1a54b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/charting/components/AxisBase.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ export abstract class AxisBase extends ComponentBase {
407407
public setForcedInterval(interval) {
408408
this.mForcedInterval = interval;
409409
// set this to true if it was disabled, as it makes no sense to call this method with forcedInterval disabled
410-
this.mForcedIntervalEnabled = true;
410+
this.mForcedIntervalEnabled = interval > 0;
411411
}
412412
/**
413413
* @return the force interval

0 commit comments

Comments
 (0)