@@ -26,6 +26,7 @@ import useNetwork from '@hooks/useNetwork';
2626import useOnyx from '@hooks/useOnyx' ;
2727import useSafeAreaInsets from '@hooks/useSafeAreaInsets' ;
2828import useSingleExecution from '@hooks/useSingleExecution' ;
29+ import useSortedActions from '@hooks/useSortedActions' ;
2930import useThemeStyles from '@hooks/useThemeStyles' ;
3031import { navigateToAndOpenReport , searchInServer , setGroupDraft } from '@libs/actions/Report' ;
3132import { canUseTouchScreen } from '@libs/DeviceCapabilities' ;
@@ -39,7 +40,6 @@ import variables from '@styles/variables';
3940import CONST from '@src/CONST' ;
4041import ONYXKEYS from '@src/ONYXKEYS' ;
4142import ROUTES from '@src/ROUTES' ;
42- import { sortedActionsSelector } from '@src/selectors/SortedReportActions' ;
4343import type { ReportAttributesDerivedValue } from '@src/types/onyx/DerivedValues' ;
4444import type { SelectedParticipant } from '@src/types/onyx/NewGroupChatDraft' ;
4545import getEmptyArray from '@src/types/utils/getEmptyArray' ;
@@ -68,7 +68,7 @@ function useOptions(reportAttributesDerived: ReportAttributesDerivedValue['repor
6868 const [ draftComments ] = useOnyx ( ONYXKEYS . COLLECTION . REPORT_DRAFT_COMMENT ) ;
6969 const allPersonalDetails = usePersonalDetails ( ) ;
7070 const isScreenFocusedRef = useIsFocusedRef ( ) ;
71- const [ sortedActions ] = useOnyx ( ONYXKEYS . DERIVED . RAM_ONLY_SORTED_REPORT_ACTIONS , { selector : sortedActionsSelector } ) ;
71+ const sortedActions = useSortedActions ( ) ;
7272 const [ allPolicyTags ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY_TAGS , { selector : passthroughPolicyTagListSelector } ) ;
7373 const [ conciergeReportID ] = useOnyx ( ONYXKEYS . CONCIERGE_REPORT_ID ) ;
7474
0 commit comments