Skip to content

Commit

Permalink
Merge pull request #86 from Asadaaaaa/dev/zkaa
Browse files Browse the repository at this point in the history
ternary category
  • Loading branch information
zkazharan authored Nov 4, 2023
2 parents f01d429 + c52144c commit 9b6b6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(main)/discover/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function Project() {
)
})
}else{
const categoryDataProject = dataProject.filter((item) => item.categories.map((val) => val.id).includes(filterCategory.id));
const categoryDataProject = dataProject.filter((item) => item.categories ? item.categories.map((val) => val.id).includes(filterCategory.id) : null);

categoryDataProject.map((val, index) => {
index % 2 !== 0 ? (
Expand Down

0 comments on commit 9b6b6ff

Please sign in to comment.