From 48673e3dbdcb658b6c10df5dc5233456ec04f281 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 19 May 2022 16:33:50 +0100 Subject: [PATCH] special handleVerify for current_landuse_group verification --- app/src/frontend/building/data-container.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 01cf8ef0..d564beb9 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -247,9 +247,15 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine this.setState({error: err}); } - const edits = { - [slug]: value - }; + if (slug == 'current_landuse_group'){ + const edits = { + ['current_landuse_verified']: TRUE + }; + } else { + const edits = { + [slug]: value + }; + } this.doSubmit(edits); console.log(slug + " verify button clicked")