UpCommingList find error fixed...

This commit is contained in:
dongyoungKo
2025-06-16 16:09:05 +09:00
parent 70c05c03fe
commit df11b12172

View File

@@ -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 (