From f4ca5ccd6233a3e54ba320039790dd7c7d081603 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 23 May 2022 10:17:34 +0100 Subject: [PATCH] restore original "edits" dict --- app/src/frontend/building/data-container.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index d021aa94..3e5b45f8 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -247,9 +247,11 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine this.setState({error: err}); } - this.setState({ - buildingEdits: {} - }); + const edits = { + [slug]: value + }; + + this.doSubmit(edits); console.log(slug + " verify button clicked") }