From 9627f269fbbce2cb9135137ed1ebd1e4f9ada5fd Mon Sep 17 00:00:00 2001 From: Mashintime Date: Mon, 13 Nov 2023 11:28:00 -0500 Subject: [PATCH] Convert to json --- gui/src/js/eventHandler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/src/js/eventHandler.js b/gui/src/js/eventHandler.js index 19514014..59761f93 100644 --- a/gui/src/js/eventHandler.js +++ b/gui/src/js/eventHandler.js @@ -23,6 +23,7 @@ export function connectionFailed(endpoint, event) { stateStore.modem_connection = "disconnected"; } export function stateDispatcher(data) { + data = JSON.parse(data); console.log(data); stateStore.modem_connection = "connected";