diff options
| author | Factiven <[email protected]> | 2023-04-17 16:17:45 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-17 16:17:45 +0700 |
| commit | 9a9e892a1f43a61188cfd08ef1faaf5100d0a41a (patch) | |
| tree | 005b6b4e5b786139b266847b6548770f9de6bca3 /components/hero | |
| parent | Update [user].js (diff) | |
| download | moopa-9a9e892a1f43a61188cfd08ef1faaf5100d0a41a.tar.xz moopa-9a9e892a1f43a61188cfd08ef1faaf5100d0a41a.zip | |
4th fixes
Diffstat (limited to 'components/hero')
| -rw-r--r-- | components/hero/content.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 ( <div> <h1 className="px-5 font-karla text-[20px] font-bold">{section}</h1> @@ -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 ( <div key={anime.id} |