Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
fix(SCREENSAVER): fix console errors when using weather tile (#663)
Browse files Browse the repository at this point in the history
The "entity" is undefined in those cases so we have to pass empty
object instead like places above do already.
  • Loading branch information
rchl authored Mar 3, 2021
1 parent 40114d8 commit 1669a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/directives/headerItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div class="header-weather--summary" ng-if="item.fields.summary">
<span ng-bind="getWeatherField('summary', item, {})"></span>
</div>
<div class="header-weather--state" ng-if="!item.fields.summary && (_state = entityState(item, entity))">
<div class="header-weather--state" ng-if="!item.fields.summary && (_state = entityState(item, {}))">
<span ng-bind="_state"></span>
</div>
</div>
Expand Down

0 comments on commit 1669a12

Please sign in to comment.