Fix history panel (#757)

This commit is contained in:
Andrey 2017-12-31 02:41:16 +02:00 committed by Paulus Schoutsen
parent 5085c78f7e
commit 9e2396375e
2 changed files with 6 additions and 2 deletions

View File

@ -236,7 +236,9 @@
} }
// Add an entry for final values // Add an entry for final values
pushData([endTime].concat(prevValues.slice(1)), false); if (prevValues) {
pushData([endTime].concat(prevValues.slice(1)), false);
}
dataTable.addRows(data); dataTable.addRows(data);
return dataTable; return dataTable;

View File

@ -126,7 +126,9 @@ class StateHistoryChartTimeline extends
} }
}); });
addRow(entityDisplay, prevState, prevLastChanged, endTime); if (prevState !== null) {
addRow(entityDisplay, prevState, prevLastChanged, endTime);
}
numTimelines++; numTimelines++;
}); });