From 79a17990f7957088128e97794f7d9de4a85d1fcb Mon Sep 17 00:00:00 2001 From: Eduardo Filho Date: Tue, 24 Dec 2024 15:58:11 -0500 Subject: [PATCH] fix display of metrics after supporting labeled distributions (#3016) --- src/config/glean.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/glean.js b/src/config/glean.js index 3e3d754e2..eba9649eb 100644 --- a/src/config/glean.js +++ b/src/config/glean.js @@ -359,6 +359,7 @@ export const FENIX = { // This function is called directly after the response has been received by // the frontend. It will always run, even against cached data, as a way of // resetting the necessary state. + const viewType = probeType; let etc = {}; // filter out true/false aggregate results in boolean metrics. See: https://github.com/mozilla/glam/pull/1525#discussion_r694135079 @@ -367,12 +368,12 @@ export const FENIX = { data = data.filter((di) => di.client_agg_type === ''); } - if (probeType === 'categorical') { + if (viewType === 'categorical') { etc = extractBucketMetadata(data); appStore.setField('activeBuckets', etc.initialBuckets); } - return { data, probeType, ...etc }; + return { data, viewType, ...etc }; }, transformProbeForGLAM(probe) { const pr = { ...probe };