diff --git a/src/components/Widgets/WeatherForecast.vue b/src/components/Widgets/WeatherForecast.vue index c95c045d..5130914a 100644 --- a/src/components/Widgets/WeatherForecast.vue +++ b/src/components/Widgets/WeatherForecast.vue @@ -56,7 +56,8 @@ export default { return this.options.numDays || 6; }, endpoint() { - const { apiKey, city } = this.options; + const apiKey = this.parseAsEnvVar(this.options.apiKey); + const city = this.options; const params = `?q=${city}&cnt=${this.numDays}&units=${this.units}&appid=${apiKey}`; return `${widgetApiEndpoints.weatherForecast}${params}`; },