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

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