From 38c0497a30f4b3d186539aecf1f0f8ff8ac6ac5a Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 7 Dec 2024 14:29:26 -0500 Subject: [PATCH] Inherit the whole state object on message receive --- src/assets/HestiaClasses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index a1439e2..4706821 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -87,7 +87,7 @@ export class Communicator { const msgJson = JSON.parse(msgStr); console.log(`Message received on topic ${topic}: ${msgStr}`); console.log(msgJson); - state[msgJson.name].on = msgJson.on; + state[msgJson.name] = msgJson; window.refreshState(window.document, state); }); }