From a5cecbe1c76e501b19859d2543de81ebd0f50b25 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sat, 26 Nov 2016 14:25:52 +0300 Subject: [PATCH] Fix for backward compatibility with lodash 2.4 (_.uniqBy) --- src/datasource-zabbix/responseHandler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/datasource-zabbix/responseHandler.js b/src/datasource-zabbix/responseHandler.js index 7ebe7a9..13b1a2e 100644 --- a/src/datasource-zabbix/responseHandler.js +++ b/src/datasource-zabbix/responseHandler.js @@ -104,3 +104,6 @@ export default { handleTrends: handleTrends, handleSLAResponse: handleSLAResponse }; + +// Fix for backward compatibility with lodash 2.4 +if (!_.uniqBy) {_.uniqBy = _.uniq;}