@@ -69,13 +69,13 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) {
6969 const { shouldUseNarrowLayout, isSmallScreenWidth} = useResponsiveLayout ( ) ;
7070 const selectionListRef = useRef < SelectionListHandle > ( null ) ;
7171 const textInputRef = useRef < TextInput > ( null ) ;
72- const [ userSearchPhrase ] = useOnyx ( ONYXKEYS . ROOM_MEMBERS_USER_SEARCH_PHRASE ) ;
73- const [ reportNameValuePairs ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_NAME_VALUE_PAIRS } ${ report ?. reportID } ` ) ;
74- const [ reportMetadata ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_METADATA } ${ report ?. reportID } ` ) ;
75- const [ reportAttributes ] = useOnyx ( ONYXKEYS . DERIVED . REPORT_ATTRIBUTES , { selector : ( attributes ) => attributes ?. reports } ) ;
72+ const [ userSearchPhrase ] = useOnyx ( ONYXKEYS . ROOM_MEMBERS_USER_SEARCH_PHRASE , { canBeMissing : true } ) ;
73+ const [ reportNameValuePairs ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_NAME_VALUE_PAIRS } ${ report ?. reportID } ` , { canBeMissing : false } ) ;
74+ const [ reportMetadata ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_METADATA } ${ report ?. reportID } ` , { canBeMissing : false } ) ;
75+ const [ reportAttributes ] = useOnyx ( ONYXKEYS . DERIVED . REPORT_ATTRIBUTES , { selector : ( attributes ) => attributes ?. reports , canBeMissing : false } ) ;
7676 const { selectionMode} = useMobileSelectionMode ( ) ;
77- const [ session ] = useOnyx ( ONYXKEYS . SESSION ) ;
78- const [ personalDetails ] = useOnyx ( ONYXKEYS . PERSONAL_DETAILS_LIST ) ;
77+ const [ session ] = useOnyx ( ONYXKEYS . SESSION , { canBeMissing : false } ) ;
78+ const [ personalDetails ] = useOnyx ( ONYXKEYS . PERSONAL_DETAILS_LIST , { canBeMissing : false } ) ;
7979 const currentUserAccountID = Number ( session ?. accountID ) ;
8080 const isCurrentUserAdmin = isGroupChatAdmin ( report , currentUserAccountID ) ;
8181 const isGroupChat = useMemo ( ( ) => isGroupChatUtils ( report ) , [ report ] ) ;
0 commit comments