mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix possible JS error (#789)
This commit is contained in:
parent
7231976af6
commit
c06be58a33
@ -116,8 +116,8 @@ class StateHistoryCharts extends Polymer.Element {
|
||||
}
|
||||
|
||||
_computeIsEmpty(historyData) {
|
||||
return (historyData &&
|
||||
historyData.timeline.length === 0 &&
|
||||
return !historyData || !historyData.timeline || !historyData.line ||
|
||||
(historyData.timeline.length === 0 &&
|
||||
historyData.line.length === 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user