scripting: setVar not affecting all widgets when mutliple widgets match provided id

This commit is contained in:
jean-emmanuel 2022-01-16 20:25:24 +01:00
parent 1ae5a33dcd
commit cfa6bd7645
2 changed files with 3 additions and 2 deletions

View file

@ -108,7 +108,7 @@ class ScriptVm extends Vm {
Object.keys(widgetManager.idRoute).filter(key => key.match(new RegExp('^' + id.replace(/\*/g, '.*') + '$')))
).filter(w => w !== widget)
} else {
widgets = this.resolveId(id).slice(0, 1)
widgets = this.resolveId(id)
}