From ecfc2cf4f50f1ff12c626846c6e7a51ecc76ae46 Mon Sep 17 00:00:00 2001 From: Alex Dik Date: Mon, 22 Feb 2016 11:41:20 +0100 Subject: [PATCH] Add lodash includes as an alias for contains As we use an older version of lodash, _.includes is not a function. So we have to add the alias ourselves. This is related to the following restangular issue on github: https://github.com/mgonto/restangular/issues/1314 --- frontend/app/global.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/app/global.js b/frontend/app/global.js index b98ca5d3bb..dd1945e4e8 100644 --- a/frontend/app/global.js +++ b/frontend/app/global.js @@ -71,3 +71,7 @@ require('angular-ui-select/dist/select'); require('angular-ui-select/dist/select.css'); require('restangular'); + +// 'includes' is not a function in older versions of lodash, so we need to substitute +// due to the update related to https://github.com/mgonto/restangular/issues/1314 +_.includes = _.includes || _.include || _.contains;