We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31c2f06 commit 161673dCopy full SHA for 161673d
1 file changed
web/src/features/mentors/hooks/useMentorsPageState.ts
@@ -100,6 +100,10 @@ export const useMentorsPageState = () => {
100
const currentExpandedMentor = expandedMentor();
101
if (!currentExpandedMentor) return;
102
103
+ // Don't collapse the expanded mentor before data has loaded,
104
+ // otherwise URL params get wiped on initial page load.
105
+ if (diplomas.loading) return;
106
+
107
const mentorStillVisible = filteredSummaries().some(
108
(summary) => summary.mentor === currentExpandedMentor,
109
);
0 commit comments