updated as in the interactions api

This commit is contained in:
csawatzky 2025-04-21 16:40:30 -06:00
parent e8e32e1886
commit c617ebf868
12 changed files with 66 additions and 50 deletions

View file

@ -154,7 +154,7 @@ export default function ObjectAlerts(props: Props) {
//get the interactions for the component
let device = componentDevices.get(key);
if (device !== undefined) {
await interactionsAPI.listInteractionsByComponent(device, comp.location()).then(resp => {
await interactionsAPI.listInteractionsByComponent(device, comp.location(), undefined, as).then(resp => {
if (resp.length > 0) {
resp.forEach(interaction => {
icMap.set(interaction.key(), key);
@ -366,7 +366,7 @@ export default function ObjectAlerts(props: Props) {
notify: true
});
interactionsAPI
.addInteractionToComponents(compIds, newAlert)
.addInteractionToComponents(compIds, newAlert, as)
.then(_resp => {
openSnack("interaction added to selected components");
})