From a378f61a532e7e5cf3f91560cd88cba8b353d41c Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 23 May 2022 11:14:27 +0100 Subject: [PATCH] try swapping current_landuse_group for date_year hack --- app/src/frontend/building/data-container.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 3e5b45f8..911e9567 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -246,10 +246,10 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine } catch(err) { this.setState({error: err}); } - - const edits = { - [slug]: value - }; + + const edits = (slug == 'current_landuse_group') ? + {['date_year']: value} : + {[slug]: value} this.doSubmit(edits); console.log(slug + " verify button clicked")