From ce0ef4097a6d81073ca1ce7adb843b6200d5e1bc Mon Sep 17 00:00:00 2001 From: samay-kothari <2001samay@gmail.com> Date: Sat, 16 Apr 2022 13:07:57 +0530 Subject: [PATCH] fixing some redundant changes --- app/views/SearchMessagesView/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/SearchMessagesView/index.tsx b/app/views/SearchMessagesView/index.tsx index cb65b6706..353f07192 100644 --- a/app/views/SearchMessagesView/index.tsx +++ b/app/views/SearchMessagesView/index.tsx @@ -140,10 +140,10 @@ class SearchMessagesView extends React.Component { // @ts-ignore - if (message.urls.length > 0) { + if (message.urls && message.urls.length > 0) { message.urls = message.urls?.map((url, index) => { - if (url.meta !== undefined) { + if (url.meta) { return { _id: index, title: url.meta.pageTitle,