From 9a9e892a1f43a61188cfd08ef1faaf5100d0a41a Mon Sep 17 00:00:00 2001 From: Factiven Date: Mon, 17 Apr 2023 16:17:45 +0700 Subject: 4th fixes --- components/hero/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/hero') diff --git a/components/hero/content.js b/components/hero/content.js index 348e1ab..1a45860 100644 --- a/components/hero/content.js +++ b/components/hero/content.js @@ -27,7 +27,7 @@ export default function Content({ ids, section, data }) { // console.log({ left: scrollLeft, right: scrollRight }); const array = data; - let filteredData = array.filter((item) => item.status !== "Unknown"); + let filteredData = array?.filter((item) => item.status !== "Unknown"); return (

{section}

@@ -44,7 +44,7 @@ export default function Content({ ids, section, data }) { className="scroll flex h-full w-full items-center select-none overflow-x-scroll scroll-smooth whitespace-nowrap overflow-y-hidden scrollbar-hide lg:gap-8 gap-5 p-10 z-30 " onScroll={handleScroll} > - {filteredData.map((anime) => { + {filteredData?.map((anime) => { return (