attempt only refresh on current use verification button pressed

This commit is contained in:
Ed Chalstrey 2022-05-23 11:57:07 +01:00
parent f37ee00dac
commit 0d1d57eaa4

View File

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