diff options
| author | Factiven <[email protected]> | 2023-04-25 16:29:00 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-25 16:29:00 +0700 |
| commit | 9b524cd5312dc01f955046f62cd40da26160a327 (patch) | |
| tree | 9f1d172b60d482dea8268742ffce7de1f7aea9ca /components | |
| parent | Update [...id].js (diff) | |
| parent | Merge branch 'main' into pre-production (diff) | |
| download | moopa-9b524cd5312dc01f955046f62cd40da26160a327.tar.xz moopa-9b524cd5312dc01f955046f62cd40da26160a327.zip | |
Merge pull request #1 from DevanAbinaya/pre-production
Merge branch pre-production to main
Diffstat (limited to 'components')
| -rw-r--r-- | components/hero/content.js | 2 | ||||
| -rw-r--r-- | components/manga/chapters.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/hero/content.js b/components/hero/content.js index 1a45860..98ec4a8 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 !== null); return ( <div> <h1 className="px-5 font-karla text-[20px] font-bold">{section}</h1> diff --git a/components/manga/chapters.js b/components/manga/chapters.js index 7997a73..56e07ae 100644 --- a/components/manga/chapters.js +++ b/components/manga/chapters.js @@ -24,7 +24,7 @@ export default function Content({ ids, providers }) { } useEffect(() => { fetchData(); - }, [providers]); + }, [providers, fetchData]); useEffect(() => { // console.log("Data changed:", data); }, [data]); |