From 0d1d57eaa47bb1df9370d9e7ae8687a23f0c3ab2 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 23 May 2022 11:57:07 +0100 Subject: [PATCH] attempt only refresh on current use verification button pressed --- app/src/frontend/building/data-container.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 911e9567..72b8f1c5 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -247,11 +247,13 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine this.setState({error: err}); } - const edits = (slug == 'current_landuse_group') ? - {['date_year']: value} : - {[slug]: value} - - this.doSubmit(edits); + if (slug == 'current_landuse_group'){ + const edits = { + ['current_landuse_verified'] = true + } + this.doSubmit(edits); + console.log('current_landuse_verified updated') + } console.log(slug + " verify button clicked") }