[HomePanel]SubCategory 부분 포커싱 이상건
- 의존성배열 추가 .
This commit is contained in:
@@ -43,7 +43,7 @@ const SubCategory = () => {
|
|||||||
const initialLgCatCd = categoryInfos[0].lgCatCd;
|
const initialLgCatCd = categoryInfos[0].lgCatCd;
|
||||||
setCurrentLgCatCd(initialLgCatCd);
|
setCurrentLgCatCd(initialLgCatCd);
|
||||||
}
|
}
|
||||||
}, []);
|
}, [categoryInfos]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (currentLgCatCd) {
|
if (currentLgCatCd) {
|
||||||
@@ -63,7 +63,7 @@ const SubCategory = () => {
|
|||||||
<Container>
|
<Container>
|
||||||
<CategoryNav
|
<CategoryNav
|
||||||
categoryInfos={categoryInfos}
|
categoryInfos={categoryInfos}
|
||||||
currentLgCatCd={currentLgCatCd}
|
currentCategoryCode={currentLgCatCd}
|
||||||
onCategoryNavClick={handleCategoryNav}
|
onCategoryNavClick={handleCategoryNav}
|
||||||
type="home"
|
type="home"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user