📌fix: 견적서/발전 시뮬레이션 메뉴에선 plan 삭제 버튼 조건부 렌더링

This commit is contained in:
yoosangwook 2025-02-07 21:09:46 +09:00
parent e0489a8698
commit 2a2e8f1a2f

View File

@ -39,7 +39,7 @@ export default function CanvasLayout({ children }) {
onClick={() => handleCurrentPlan(plan.id)}
>
<span>{`Plan ${plan.planNo}`}</span>
{index !== 0 && (
{index !== 0 && !pathname.includes('/estimate') && !pathname.includes('/simulator') && (
<i
className="close"
onClick={(e) => {