Forecast: only adjust y-scale if experimental (#28548)

This commit is contained in:
Michael Geers 2026-03-25 15:03:13 +01:00 • committed by GitHub
parent a687f30a2b
commit ad03bcb17e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,9 +98,10 @@ export default defineComponent({
return !!this.forecast.solar && this.experimental;
},
solar() {
return this.showSolarAdjust && this.solarAdjusted
? adjustedSolar(this.forecast.solar)
: this.forecast.solar;
if (this.showSolarAdjust && this.solarAdjusted) {
return adjustedSolar(this.forecast.solar);
}
return this.forecast.solar ? { ...this.forecast.solar, scale: undefined } : undefined;
},
solarAdjustText() {
let percent = "";