📌fix: setMenunumber effect 조건 추가
This commit is contained in:
parent
92ea757a17
commit
50bd18c2f6
@ -32,14 +32,16 @@ export default function FloorPlan({ children }) {
|
||||
useEffect(() => {
|
||||
if (!correntObjectNo) return // correntObjectNo가 없으면 실행하지 않음
|
||||
|
||||
setMenuNumber(1)
|
||||
if(menuNumber === null) {
|
||||
setMenuNumber(1)
|
||||
}
|
||||
fetchSettings()
|
||||
fetchBasicSettings()
|
||||
|
||||
return () => {
|
||||
closeAll()
|
||||
}
|
||||
}, [])
|
||||
}, [correntObjectNo])
|
||||
|
||||
const modalProps = {
|
||||
menuNumber,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user