From 036a13a7fc2b1f66139e20c3d0e1ac9ffe1fec1c Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Sun, 7 Dec 2025 15:54:02 +0330 Subject: [PATCH] build and format --- .../tollHouse/Form/Edit/EditController.jsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/infrastructure/tollHouse/Form/Edit/EditController.jsx b/src/components/infrastructure/tollHouse/Form/Edit/EditController.jsx index 7d2ce1e..eb30008 100644 --- a/src/components/infrastructure/tollHouse/Form/Edit/EditController.jsx +++ b/src/components/infrastructure/tollHouse/Form/Edit/EditController.jsx @@ -47,15 +47,12 @@ const EditController = ({ rowId, mutate, setOpenEditDialog }) => { overview_files_3: tollHouseItemDetails?.files?.[2]?.path || null, overview_files_4: tollHouseItemDetails?.files?.[3]?.path || null, overview_files_5: tollHouseItemDetails?.files?.[4]?.path || null, - area: - tollHouseItemDetails?.area?.coordinates - ?.map(([lon, lat]) => ({ lat, lon })) - ?.slice(0, -1) || [ - { lat: "", lon: "" }, - { lat: "", lon: "" }, - { lat: "", lon: "" }, - { lat: "", lon: "" }, - ], + area: tollHouseItemDetails?.area?.coordinates?.map(([lon, lat]) => ({ lat, lon }))?.slice(0, -1) || [ + { lat: "", lon: "" }, + { lat: "", lon: "" }, + { lat: "", lon: "" }, + { lat: "", lon: "" }, + ], }; const HandleSubmit = async (result) => { const fields = [