mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Merge pull request #2995 from jlmitch5/lodashFindUpdate
update syntax of lodash find call
This commit is contained in:
commit
02f709f8d1
@ -51,7 +51,7 @@ function InstancesController ($scope, $state, $http, models, strings, Dataset, P
|
||||
};
|
||||
|
||||
vm.toggle = (toggled) => {
|
||||
const instance = _.find(vm.instances, 'id', toggled.id);
|
||||
const instance = _.find(vm.instances, ['id', toggled.id]);
|
||||
instance.enabled = !instance.enabled;
|
||||
|
||||
const data = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user