updated as in the interactions api
This commit is contained in:
parent
e8e32e1886
commit
c617ebf868
12 changed files with 66 additions and 50 deletions
|
|
@ -94,7 +94,7 @@ export default function BinConditioningInteraction(props: Props) {
|
|||
const [sliderMarks, setSliderMarks] = useState<Map<quack.MeasurementType, number>>(new Map());
|
||||
//this is the emc value calculated from the interactions temp and humidity conditions
|
||||
const [baseEMC, setBaseEMC] = useState<number | undefined>();
|
||||
const [{ user }] = useGlobalState();
|
||||
const [{ user, as }] = useGlobalState();
|
||||
const classes = useStyles();
|
||||
const interactionAPI = useInteractionsAPI();
|
||||
const { openSnack } = useSnackbar();
|
||||
|
|
@ -144,7 +144,7 @@ export default function BinConditioningInteraction(props: Props) {
|
|||
|
||||
const updateInteraction = () => {
|
||||
interactionAPI
|
||||
.updateInteraction(deviceId, interaction.settings)
|
||||
.updateInteraction(deviceId, interaction.settings, as)
|
||||
.then(resp => {
|
||||
openSnack("Updated Interaction Conditions");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue