Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
rayane-djouah committed Jan 7, 2025
1 parent 0a7f69c commit fecf2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Search/SearchTypeMenuNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title,
const removeListener = useRef<() => void>();

useEffect(() => {
removeListener.current?.();
Navigation.isNavigationReady().then(() => {
removeListener.current?.();
const initialRoute = navigationRef.current?.getCurrentRoute();
setCurrentScreen(initialRoute?.name);
removeListener.current = navigationRef.current?.addListener('state', (event) => {
Expand Down

0 comments on commit fecf2a1

Please sign in to comment.