From 76bf1d52c168a8360aea51590c1c6d49c8815d25 Mon Sep 17 00:00:00 2001 From: NSUWAL123 Date: Mon, 29 Jul 2024 15:51:30 +0545 Subject: [PATCH] fix(uploadArea): allow to reset polygon even if its a geojson file on draw option selection --- src/frontend/src/components/createnewproject/UploadArea.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/createnewproject/UploadArea.tsx b/src/frontend/src/components/createnewproject/UploadArea.tsx index 293d26949..4c3eb6fa4 100644 --- a/src/frontend/src/components/createnewproject/UploadArea.tsx +++ b/src/frontend/src/components/createnewproject/UploadArea.tsx @@ -255,7 +255,7 @@ const UploadArea = ({ flag, geojsonFile, setGeojsonFile, setCustomDataExtractUpl type="button" onClick={() => resetFile()} className="" - disabled={drawnGeojson && !geojsonFile ? false : true} + disabled={drawnGeojson ? false : true} />

Total Area: {totalAreaSelection}