try swapping current_landuse_group for date_year hack
This commit is contained in:
parent
b5804c1f1c
commit
a378f61a53
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user