Update node view and support hosted version

This commit is contained in:
Sacha Weatherstone committed 2021-12-15 21:09:53 +11:00
1 parent 3873731f43
commit c3a4f81b1c
5 files changed
+54 -40

No files matched your search

+3
View File
@@ -5,6 +5,7 @@ import {
addNode,
addPosition,
addUser,
resetState,
setDeviceStatus,
setLastMeshInterraction,
setMyNodeInfo,
@@ -94,6 +95,8 @@ const registerListeners = (): void => {
}
if (status === Types.DeviceStatusEnum.DEVICE_DISCONNECTED) {
store.dispatch(setReady(false));
store.dispatch(resetState());
cleanupListeners();
}
});