Update src/data/history.ts

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
J. Nick Koston 2023-01-21 16:59:33 -10:00 committed by GitHub
parent 478539d58d
commit 4091205b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,7 @@ class HistoryStream {
newHistory[entityId] = []; newHistory[entityId] = [];
}); });
Object.keys(newHistory).forEach((entityId) => { Object.keys(newHistory).forEach((entityId) => {
let purgeOld = false; let purgeOld = entityId in this.combinedHistory;
if ( if (
entityId in this.combinedHistory && entityId in this.combinedHistory &&
entityId in streamMessage.states entityId in streamMessage.states