diff --git a/brewman/static/scripts/angular_service.js b/brewman/static/scripts/angular_service.js index a392eee5..6c7cdd37 100644 --- a/brewman/static/scripts/angular_service.js +++ b/brewman/static/scripts/angular_service.js @@ -434,7 +434,7 @@ overlordService.factory("uploadedImageResizer", ["$q", "ReaderPromise", function var ProcessUpload = function (uploadedFile, oldFiles) { var file = {File: uploadedFile.file}, - exists = _.any(oldFiles, function (value) { + exists = _.some(oldFiles, function (value) { return angular.equals(value.File, file.File); }); diff --git a/brewman/static/scripts/ledger.js b/brewman/static/scripts/ledger.js index 8a947885..f38fcaa4 100644 --- a/brewman/static/scripts/ledger.js +++ b/brewman/static/scripts/ledger.js @@ -53,7 +53,7 @@ var LedgerController = ['$scope', '$routeParams', '$location', 'asDateFilter', ' if (hidden.length !== 0) { data = _.filter(data, function (item) { - return !_.any(hidden, function (hi) { + return !_.some(hidden, function (hi) { return item.ID === hi; }); });