updated as in the objectHeaterApi
This commit is contained in:
parent
59356aad27
commit
29902bc40b
6 changed files with 25 additions and 22 deletions
|
|
@ -138,7 +138,7 @@ export default function ObjectHeaterSettings(props: Props) {
|
|||
settings.airCirculation = airCirculation;
|
||||
settings.mutations = linearMutations;
|
||||
objectHeaterAPI
|
||||
.updateObjectHeater(heater.key, heaterName, settings)
|
||||
.updateObjectHeater(heater.key, heaterName, settings, as)
|
||||
.then(resp => {
|
||||
openSnack("Heater update");
|
||||
let updatedHeater = heater;
|
||||
|
|
@ -161,7 +161,7 @@ export default function ObjectHeaterSettings(props: Props) {
|
|||
mutations: linearMutations
|
||||
});
|
||||
objectHeaterAPI
|
||||
.addObjectHeater(heaterName, settings)
|
||||
.addObjectHeater(heaterName, settings, as)
|
||||
.then(resp => {
|
||||
openSnack("New heater added");
|
||||
let newHeater = ObjectHeater.create(
|
||||
|
|
@ -178,7 +178,7 @@ export default function ObjectHeaterSettings(props: Props) {
|
|||
const removeHeater = () => {
|
||||
if (heater) {
|
||||
objectHeaterAPI
|
||||
.removeObjectHeater(heater.key)
|
||||
.removeObjectHeater(heater.key, as)
|
||||
.then(resp => {
|
||||
openSnack("Heater Removed");
|
||||
setRemoveDialog(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue