From 28017821512f9deb3a809a2c18de436dd9960bd6 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Fri, 20 May 2022 11:42:14 +0100 Subject: [PATCH] restore original "edits" dict --- app/src/frontend/building/data-container.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index 6315cb91..3e5b45f8 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -247,9 +247,9 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine this.setState({error: err}); } - const edits = (slug == 'current_landuse_group') ? - {['current_landuse_verified']: true} : - {[slug]: value} + const edits = { + [slug]: value + }; this.doSubmit(edits); console.log(slug + " verify button clicked")