restore original "edits" dict

This commit is contained in:
Ed Chalstrey 2022-05-20 11:42:14 +01:00
parent bb9d1468cc
commit 2801782151

View File

@ -247,9 +247,9 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => 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")