Merge branch 'dev' of https://git.hanasys.jp/qcast3/qcast-front into dev
This commit is contained in:
commit
9db8b949ff
@ -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