mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
update syntax of lodash find call
This commit is contained in:
parent
b2c755ba76
commit
593ab90f92
@ -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