Skip to content

Commit d353e3a

Browse files
authored
[1.6.1] CPM_Arena Production (#45)
[1.6.1] CPM_Arena Production
2 parents f0fbeb7 + 0117429 commit d353e3a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

public/storage/update.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"date": "2024.07.20",
4-
"version": "1.6.0",
4+
"version": "1.6.0 - 1.6.1",
55
"contents": [
66
{
77
"title": "최적화 진행",
@@ -39,7 +39,8 @@
3939
"descriptions": [
4040
"상세 정보 창이 나타날 때, 화면 스크롤 되는 문제가 수정됩니다.",
4141
"고정된 선수가 존재할 때 선택 초기화를 하면 엔트리 활성화가 정상적으로 동작하지 않던 문제가 수정됩니다.",
42-
"화면 높이가 작을 때 배경화면이 정상적으로 출력되지 않던 문제가 수정됩니다."
42+
"화면 높이가 작을 때 배경화면이 정상적으로 출력되지 않던 문제가 수정됩니다.",
43+
"모바일 화면에서 메뉴 버튼을 누르면 선택한 선수들이 초기화되던 문제가 수정됩니다."
4344
]
4445
}
4546
]

src/app/components/common/header/menu-filter.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useEffect } from 'react';
1+
import { useEffect, useState } from 'react';
22
import { usePathname, useSearchParams } from 'next/navigation';
33
import { useRouter } from 'next-nprogress-bar';
44
import { useShallow } from 'zustand/react/shallow';
@@ -17,6 +17,7 @@ export default function MenuFilter() {
1717
);
1818
const setIsLoading = useCommonStore((state) => state.setIsLoading);
1919
const clearBuff = useBuffStore((state) => state.clearBuff);
20+
const [isMounted, setIsMounted] = useState(false);
2021
const pathname = usePathname();
2122
const searchParams = useSearchParams();
2223
const limit = searchParams.get('limit');
@@ -30,6 +31,11 @@ export default function MenuFilter() {
3031
};
3132

3233
useEffect(() => {
34+
if (!isMounted) {
35+
setIsMounted(true);
36+
return;
37+
}
38+
3339
setSelectedPlayer(null);
3440
setPinnedPlayer(null);
3541
clearLineup();

0 commit comments

Comments
 (0)