updated as in the field api

This commit is contained in:
csawatzky 2025-04-21 14:44:07 -06:00
parent 29902bc40b
commit ae458c3fca
3 changed files with 17 additions and 15 deletions

View file

@ -1200,7 +1200,7 @@ import { Result } from "@mapbox/mapbox-gl-geocoder";
let newSettings = field.settings;
newSettings.fieldGeoData = geoData;
fieldAPI
.updateField(key, newSettings)
.updateField(key, newSettings, undefined, as)
.then(resp => {
let cloneGeo = clone(geoRef.current);
geoData.objectKey = key;
@ -1219,7 +1219,7 @@ import { Result } from "@mapbox/mapbox-gl-geocoder";
let field = fieldsRef.current.get(key);
if (field) {
fieldAPI
.removeField(key)
.removeField(key, as)
.then(resp => {
let cloneGeo = clone(geoRef.current);
cloneGeo.delete(key);