Merge pull request #2995 from jlmitch5/lodashFindUpdate

update syntax of lodash find call
This commit is contained in:
Matthew Jones 2018-09-12 13:59:59 -04:00 committed by GitHub
commit 02f709f8d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {