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