updated the component and device api's to have as be a parameter for the function
This commit is contained in:
parent
c617ebf868
commit
b62c7dbe5c
39 changed files with 346 additions and 651 deletions
|
|
@ -104,7 +104,8 @@ export default function Device(props: Props) {
|
|||
undefined,
|
||||
[deviceID.toString()],
|
||||
["device"],
|
||||
true
|
||||
true,
|
||||
as
|
||||
);
|
||||
let interactionsPromise = interactionsAPI.listInteractionsByDevice(deviceID, undefined, as);
|
||||
let groupPromise: Promise<any> = Promise.resolve(undefined);
|
||||
|
|
@ -343,7 +344,7 @@ export default function Device(props: Props) {
|
|||
let updatedPreferences = cloneDeep(preferences);
|
||||
updatedPreferences.notify = !preferences.notify;
|
||||
deviceAPI
|
||||
.updatePreferences(deviceID, updatedPreferences)
|
||||
.updatePreferences(deviceID, updatedPreferences, undefined, undefined, as)
|
||||
.then(() => setPreferences(updatedPreferences))
|
||||
.catch(() => {
|
||||
error(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue