fix(mobile): sync role state on route changes
This commit is contained in:
+5
-1
@@ -2116,7 +2116,9 @@ const toggleSummaryCardSpeak = async () => {
|
||||
const startPracticeFromSummaryCard = () => {
|
||||
closeSummaryCard();
|
||||
closeSopPanel();
|
||||
openUserPracticePanel();
|
||||
navigatePath(userPanelPath('tasks'));
|
||||
applyRouteFromLocation();
|
||||
scrollToTop();
|
||||
};
|
||||
|
||||
const searchSopKnowledge = async () => {
|
||||
@@ -3290,6 +3292,8 @@ const applyRouteFromLocation = () => {
|
||||
applyingRoute = false;
|
||||
});
|
||||
void fetchMobileHome();
|
||||
void fetchPracticeData();
|
||||
void fetchCandidateMaterials();
|
||||
};
|
||||
|
||||
window.addEventListener('popstate', applyRouteFromLocation);
|
||||
|
||||
Reference in New Issue
Block a user