From 81b54400df80577cc1de7a48369c22205afa768f Mon Sep 17 00:00:00 2001 From: Dan Shappir Date: Mon, 12 Feb 2024 11:52:22 +0200 Subject: [PATCH] Update lib/histogram.js Co-authored-by: Simen Bekkhus --- lib/histogram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/histogram.js b/lib/histogram.js index 101827d3..e5b2c611 100644 --- a/lib/histogram.js +++ b/lib/histogram.js @@ -290,7 +290,7 @@ function extractBucketValuesForExport(histogram) { { le: upperBound }, acc, name, - (bucketExemplars && bucketExemplars[upperBound]) || null, + bucketExemplars?.[upperBound] ?? null, labels, ); });