update syntax of lodash find call

This commit is contained in:
John Mitchell 2018-09-12 10:54:17 -04:00
parent b2c755ba76
commit 593ab90f92
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

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