From 67da6db23ff1d94cdc9920743a82f1db39a0c22b Mon Sep 17 00:00:00 2001
From: Jaden Diefenbaugh <blakcap@users.noreply.github.com>
Date: Thu, 23 Feb 2017 10:56:56 +0100
Subject: [PATCH] generalize grabbing analyzer block

---
 .../static/reports/app/controllers/groupsController.js        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/beat/web/reports/static/reports/app/controllers/groupsController.js b/beat/web/reports/static/reports/app/controllers/groupsController.js
index 47eaa42f2..c8fa6f3bc 100644
--- a/beat/web/reports/static/reports/app/controllers/groupsController.js
+++ b/beat/web/reports/static/reports/app/controllers/groupsController.js
@@ -28,8 +28,8 @@ angular.module('reportApp').controller('GroupsController', ['$scope', 'ReportSer
 	vm.report = $scope.report;
 
 	const getAnalyzerFromExpName = (expName) => {
-		let analyzer_block = vm.report.all_experiments[expName].declaration.analyzers.analysis
-			|| vm.report.all_experiments[expName].declaration.analyzers.analyzer_private;
+		let analyzers = vm.report.all_experiments[expName].declaration.analyzers;
+		let analyzer_block = analyzers[Object.keys(analyzers)[0]];
 
 		return analyzer_block.algorithm;
 	};
-- 
GitLab