Skip to content

Commit

Permalink
πŸ› Fix: λŒ€λΆ„λ₯˜ 필터링 정상화 #86
Browse files Browse the repository at this point in the history
  • Loading branch information
gd06070 committed Dec 9, 2024
1 parent 8fb8ff0 commit ec6943c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MallangMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const MallangMap = () => {
};

const filteredMarkers = useMemo(() => {
console.log('ν˜„μž¬ μΉ΄ν…Œκ³ λ¦¬:', currentCategory); // 필터링 μ‹œμ μ—μ„œ μΉ΄ν…Œκ³ λ¦¬ 확인
if (currentCategory === 'all') return markers;

return markers.filter((marker) => {
Expand All @@ -130,7 +131,7 @@ const MallangMap = () => {
return marker.type === 'LOST';
case 'rescue':
return marker.type === 'RESCUE';
case 'place':
case 'places':
return marker.type === 'PLACE';
default:
return true;
Expand Down

0 comments on commit ec6943c

Please sign in to comment.