Skip to content

Commit

Permalink
Merge pull request #14647 from rhamilto/OCPBUGS-46511
Browse files Browse the repository at this point in the history
OCPBUGS-46511: fix navigation from non-General User Preference tab to…
  • Loading branch information
openshift-merge-bot[bot] authored Jan 7, 2025
2 parents 8085aa6 + cca1e5e commit 06115eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ const UserPreferencePage: React.FC = () => {
const [spotlightElement, setSpotlightElement] = React.useState<Element>(null);

React.useEffect(() => {
setActiveTabId(groupIdFromUrl ?? 'general');
const element = document.querySelector(spotlight);
setSpotlightElement(element);
}, [spotlight, userPreferenceItemResolved, userPreferenceTabContents]);
}, [groupIdFromUrl, spotlight, userPreferenceItemResolved, userPreferenceTabContents]);

// utils and callbacks
const handleTabClick = (event: React.MouseEvent<HTMLElement>, eventKey: string) => {
Expand Down

0 comments on commit 06115eb

Please sign in to comment.