Skip to content

Commit

Permalink
reset rooutes and limit after device change (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaodingyd authored Jun 21, 2024
1 parent 2990259 commit 5dc6365
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reducers/globalState.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -75,6 +76,7 @@ export default function reducer(_state, action) {
end: null,
};
state.routes = null;
state.lastRoutes = null;
state.currentRoute = null;
}
break;
Expand Down

0 comments on commit 5dc6365

Please sign in to comment.