This commit is contained in:
@@ -668,7 +668,7 @@ async function saveState(vm, err) {
|
|||||||
//it's new so save it
|
//it's new so save it
|
||||||
let res = await window.$gz.api.upsert(`${API_BASE_URL}states`, o);
|
let res = await window.$gz.api.upsert(`${API_BASE_URL}states`, o);
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
err.states.push(res.error);//only saves one at a time so no need for collection stuff here
|
err.states.push(res.error); //only saves one at a time so no need for collection stuff here
|
||||||
err.error = true;
|
err.error = true;
|
||||||
} else {
|
} else {
|
||||||
vm.obj.states[i] = res.data;
|
vm.obj.states[i] = res.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user