diff --git a/src/views/Conversations/History/MessagesList.jsx b/src/views/Conversations/History/MessagesList.jsx index 97288d5..5c71a94 100644 --- a/src/views/Conversations/History/MessagesList.jsx +++ b/src/views/Conversations/History/MessagesList.jsx @@ -60,7 +60,7 @@ const MessagesList = ({ ...props }) => { firstActionPageParams.lasttime = formValues.from_date; firstActionPageParams.loadPrePage = true; } - if (!isEmpty(formValues?.search)) { + if (!isEmpty(formValues?.search) && !isEmpty(selectedConversation.matchMsgList)) { firstActionPageParams.pretime = selectedConversation.matchMsgList[0].orgmsgtime; firstActionPageParams.lasttime = selectedConversation.matchMsgList[0].orgmsgtime; firstActionPageParams.loadPrePage = true;