From 6fca8f3f10fbcb2fd9b718854d841a3af5156d39 Mon Sep 17 00:00:00 2001 From: NSUWAL123 Date: Fri, 8 Nov 2024 09:45:59 +0545 Subject: [PATCH] fix(selectCategoryUrl): /select-category path update to /select-form --- .../MapComponent/OpenLayersComponent/LayerSwitcher/index.js | 2 +- src/frontend/src/components/createnewproject/DataExtract.tsx | 4 ++-- src/frontend/src/components/createnewproject/UploadArea.tsx | 2 +- src/frontend/src/constants/StepFormConstants.ts | 2 +- src/frontend/src/constants/blockerUrl.ts | 2 +- src/frontend/src/routes.jsx | 2 +- src/frontend/src/views/CreateNewProject.tsx | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js b/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js index 251404da0f..d4d6b45746 100644 --- a/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js +++ b/src/frontend/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js @@ -224,7 +224,7 @@ const LayerSwitcherControl = ({ map, visible = 'osm', pmTileLayerData = null }) if ( location.pathname.includes('project/') || location.pathname.includes('upload-area') || - location.pathname.includes('select-category') || + location.pathname.includes('select-form') || location.pathname.includes('map-features') || location.pathname.includes('split-tasks') ) { diff --git a/src/frontend/src/components/createnewproject/DataExtract.tsx b/src/frontend/src/components/createnewproject/DataExtract.tsx index f96e61b179..b80c3247d6 100644 --- a/src/frontend/src/components/createnewproject/DataExtract.tsx +++ b/src/frontend/src/components/createnewproject/DataExtract.tsx @@ -140,7 +140,7 @@ const DataExtract = ({ }, [formValues?.dataExtractWays]); const toggleStep = (step, url) => { - if (url === '/select-category') { + if (url === '/select-form') { dispatch( CreateProjectActions.SetIndividualProjectDetailsData({ ...formValues, @@ -327,7 +327,7 @@ const DataExtract = ({ btnText="PREVIOUS" btnType="secondary" type="button" - onClick={() => toggleStep(3, '/select-category')} + onClick={() => toggleStep(3, '/select-form')} className="fmtm-font-bold" />