UpCommingList find error fixed...
This commit is contained in:
@@ -178,9 +178,11 @@ export default memo(function UpComingList({
|
||||
const { hstNm, showId, showNm, strtDt, patncNm, lgCatNm, brndNm } =
|
||||
brandLiveChannelUpcoming[index];
|
||||
|
||||
const selectedAlertShow = alertShows //
|
||||
.find((show) => show?.showId === showId && show?.strtDt === strtDt);
|
||||
|
||||
const selectedAlertShow = Array.isArray(alertShows)
|
||||
? alertShows.find(
|
||||
(show) => show?.showId === showId && show?.strtDt === strtDt
|
||||
)
|
||||
: null;
|
||||
const alamDispFlag = selectedAlertShow?.alamDispFlag;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user