From 62541a68d1bcf962e220ebf7b96ee0681dec070e Mon Sep 17 00:00:00 2001 From: Yao Ding Date: Thu, 20 Jun 2024 10:08:56 -0400 Subject: [PATCH] reset rooutes and limit after device change --- src/reducers/globalState.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reducers/globalState.js b/src/reducers/globalState.js index c09d3bc1..aa39888c 100644 --- a/src/reducers/globalState.js +++ b/src/reducers/globalState.js @@ -60,6 +60,7 @@ export default function reducer(_state, action) { subscription: null, subscribeInfo: null, files: null, + limit: 0, }; window.localStorage.setItem('selectedDongleId', action.dongleId); if (state.devices) { @@ -75,6 +76,7 @@ export default function reducer(_state, action) { end: null, }; state.routes = null; + state.lastRoutes = null; state.currentRoute = null; } break;