fix: soft min and soft max undefined issue (#4351)

This commit is contained in:
Rajat Dabade 2024-01-10 13:12:31 +05:30 committed by GitHub
parent d65d75ef69
commit 6f5f361a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -132,8 +132,8 @@ function FullView({
thresholds: widget.thresholds,
minTimeScale,
maxTimeScale,
softMax: widget.softMax,
softMin: widget.softMin,
softMax: widget.softMax === undefined ? null : widget.softMax,
softMin: widget.softMin === undefined ? null : widget.softMin,
});
setChartOptions(newChartOptions);

View File

@ -135,8 +135,8 @@ function GridCardGraph({
thresholds: widget.thresholds,
minTimeScale,
maxTimeScale,
softMax: widget.softMax,
softMin: widget.softMin,
softMax: widget.softMax === undefined ? null : widget.softMax,
softMin: widget.softMin === undefined ? null : widget.softMin,
}),
[
widget?.id,