From 958a335043e189bbcef96244ff7c0984c3c5e9ed Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Mon, 22 Jul 2019 12:50:22 -0700 Subject: [PATCH] Fix the broken metrics feature Summary: The metrics feature got broken in this D16280167, due to a review change. ``` + if (!selectedPlugins.includes(pluginName)) { - if (selectedPlugins.length > 0 && !selectedPlugins.includes(pluginName)) { ``` Reviewed By: jknoxville Differential Revision: D16379959 fbshipit-source-id: ab1c4caf56a55bd97f1299822d6fa4331815c569 --- src/utils/exportMetrics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/exportMetrics.js b/src/utils/exportMetrics.js index d6472a8d1..34b843a1b 100644 --- a/src/utils/exportMetrics.js +++ b/src/utils/exportMetrics.js @@ -27,7 +27,7 @@ async function exportMetrics( const pluginStateData = pluginStates[key]; const arr = key.split('#'); const pluginName = arr.pop(); - if (!selectedPlugins.includes(pluginName)) { + if (selectedPlugins.length > 0 && !selectedPlugins.includes(pluginName)) { continue; } const clientID = arr.join('#');