plans 2개 이상일때 plan1 삭제기능 추가

This commit is contained in:
김민식 2025-03-05 14:15:54 +09:00
parent 6a18c93fbc
commit 74d5db411d

View File

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