try swapping current_landuse_group for date_year hack

This commit is contained in:
Ed Chalstrey 2022-05-23 11:14:27 +01:00
parent b5804c1f1c
commit a378f61a53

View File

@ -247,9 +247,9 @@ const withCopyEdit: (wc: React.ComponentType<CategoryViewProps>) => DataContaine
this.setState({error: err});
}
const edits = {
[slug]: value
};
const edits = (slug == 'current_landuse_group') ?
{['date_year']: value} :
{[slug]: value}
this.doSubmit(edits);
console.log(slug + " verify button clicked")