From 6ad768d59f0a262760a04d6ae564fbec679f3e86 Mon Sep 17 00:00:00 2001 From: karwosts Date: Thu, 28 Dec 2023 17:10:18 -0800 Subject: [PATCH] bugfix --- src/data/history.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/data/history.ts b/src/data/history.ts index 9832d4bdc508..a75772f9e05b 100644 --- a/src/data/history.ts +++ b/src/data/history.ts @@ -443,6 +443,11 @@ export const computeHistory = ( ]; } }); + Object.keys(stateHistory).forEach((entityId) => { + if (!(entityId in localStateHistory)) { + localStateHistory[entityId] = stateHistory[entityId]; + } + }); if (!localStateHistory) { return { line: [], timeline: [] };