update as in site api
This commit is contained in:
parent
1acbfe36b0
commit
59356aad27
6 changed files with 26 additions and 21 deletions
|
|
@ -120,7 +120,7 @@ export default function ConstructionMapController(props: Props) {
|
|||
newSite.settings.latitude = newLat;
|
||||
|
||||
siteAPI
|
||||
.addSite(newSite.settings)
|
||||
.addSite(newSite.settings, as)
|
||||
.then(resp => {
|
||||
openSnack("Added new Site Location");
|
||||
loadSites();
|
||||
|
|
@ -559,7 +559,7 @@ export default function ConstructionMapController(props: Props) {
|
|||
site.settings.longitude = long;
|
||||
site.settings.latitude = lat;
|
||||
siteAPI
|
||||
.updateSite(site.key(), site.settings)
|
||||
.updateSite(site.key(), site.settings, undefined, as)
|
||||
.then(resp => {
|
||||
openSnack("Site location updated");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue