[1237] 모듈설정, 공법설정시에 미리 규정의 내용이 입력되어있는것과 같은 설정 - 선택하세요 삭제
This commit is contained in:
parent
cb42ad82de
commit
d03937cc92
@ -262,6 +262,12 @@ export const Orientation = forwardRef((props, ref) => {
|
|||||||
setRoofsStore(newRoofs)
|
setRoofsStore(newRoofs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// 컴포넌트가 마운트될 때 selectedModules가 없으면 handleChangeModule 호출
|
||||||
|
if (moduleList.length > 0 && (!selectedModules || !selectedModules.itemId)) {
|
||||||
|
handleChangeModule(moduleList[0]);
|
||||||
|
}
|
||||||
|
}, [moduleList]); // 빈 의존성 배열로 마운트 시 한 번만 실행
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="properties-setting-wrap">
|
<div className="properties-setting-wrap">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user