From 34c04a4ef4148d3b3e2255b7bcc2196f12a1b26d Mon Sep 17 00:00:00 2001 From: "open-swe-dev-andrinoid[bot]" Date: Thu, 22 Jan 2026 01:32:58 +0000 Subject: [PATCH] Apply patch [skip ci] --- islands/dialogs/PopAddLeaseDialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/islands/dialogs/PopAddLeaseDialog.tsx b/islands/dialogs/PopAddLeaseDialog.tsx index b2c7e17..437f9a5 100644 --- a/islands/dialogs/PopAddLeaseDialog.tsx +++ b/islands/dialogs/PopAddLeaseDialog.tsx @@ -10,6 +10,7 @@ export function PopAddLeaseDialog(leases: Lease[], properties: Property[]) { resolve: (value: boolean) => void; } | null >(null); + const [selectedPropertyId, setSelectedPropertyId] = useState(""); function getPropertyInfo(propertyId: string) { const property = properties.find((p) => p.id === propertyId); @@ -56,8 +57,6 @@ export function PopAddLeaseDialog(leases: Lease[], properties: Property[]) { // Render property selection dialog if no propertyId provided const propertySelectionDialog = popup && !popup.propertyId ? (() => { - const [selectedPropertyId, setSelectedPropertyId] = useState(""); - return (
@@ -105,3 +104,4 @@ export function PopAddLeaseDialog(leases: Lease[], properties: Property[]) { return [popAddLease, popupAddLeaseDialog || propertySelectionDialog] as const; } +