Edit lease

Overview
Loads a lease using its route ID and presents the lease wizard in edit mode.
- Route:
/leases/:id/edit(protected, dynamicid) - Source:
front/src/pages/EditLease.tsx - Layout:
DashboardLayout - Form: independently implemented in
front/src/pages/EditLease.tsx, using shared wizard-step components andReviewConfirmStep(not theLeaseWizardwrapper).
Data flow and actions
- Load by route ID with
GET /leases/:id. - If the API lookup returns no lease or throws, the page attempts a local-storage lease fallback; if no local record exists it navigates to
/leases. - Resolve related entity/department information through their service methods when required.
- Submit changes through
PUT /leases/:id. - Review & Confirm calls the preview endpoint as form data changes.
States
Page-specific loading and errors are determined by EditLease.tsx; backend response and validation contracts are not available from frontend source.
Source: front/src/pages/EditLease.tsx, front/src/components/forms/wizard-steps/ReviewConfirmStep.tsx.
See Lease API.