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