From 2e2ba9135393a849045b56843e66dc5ab104b4fc Mon Sep 17 00:00:00 2001 From: basssy Date: Thu, 6 Feb 2025 09:33:12 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EC=BD=94=EC=9D=BC=20undefined=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/floor-plan/CanvasMenu.jsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/floor-plan/CanvasMenu.jsx b/src/components/floor-plan/CanvasMenu.jsx index 517e2c35..142f9393 100644 --- a/src/components/floor-plan/CanvasMenu.jsx +++ b/src/components/floor-plan/CanvasMenu.jsx @@ -373,7 +373,7 @@ export default function CanvasMenu(props) { useEffect(() => { if (isObjectNotEmpty(estimateRecoilState)) { if (estimateRecoilState?.createUser === 'T01') { - if (sessionState.userId !== 'T01') { + if (sessionState.storeId !== 'T01') { setButtonStyle1('none') setButtonStyle2('none') setButtonStyle3('none') @@ -404,7 +404,7 @@ export default function CanvasMenu(props) { } } } - }, [estimateRecoilState]) + }, [estimateRecoilState.tempFlg, estimateRecoilState.lockFlg]) /** * 견적서 잠금 / 해제 @@ -415,7 +415,6 @@ export default function CanvasMenu(props) { */ const handleEstimateLockController = (estimateRecoilState) => { swalFire({ - // text: estimateRecoilState.lockFlg === '0' ? getMessage('estimate.detail.lock.alertMsg') : getMessage('estimate.detail.unlock.alertMsg'), html: estimateRecoilState.lockFlg === '0' ? getMessage('estimate.detail.lock.alertMsg') : getMessage('estimate.detail.unlock.alertMsg'), confirmButtonText: estimateRecoilState.lockFlg === '1' ? getMessage('estimate.detail.unlock.confirmBtnName') : '', type: 'confirm', @@ -572,20 +571,17 @@ export default function CanvasMenu(props) { {menuNumber === 5 && ( <>
- {/*