From 252322f525a00efecc4659ba9e9609bea9ff9b2e Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Tue, 11 May 2021 17:02:24 -0700 Subject: [PATCH] Fix a bug with duplicated device plugins in "Detected in App" list Summary: When crash reporter plugin is not installed in Flipper, it can appear duplicated in "Detected in App" list. This diff fixes that. Reviewed By: passy Differential Revision: D28325072 fbshipit-source-id: 92011f1f10c6633fbd31ea886fe53f352057f4f8 --- desktop/app/src/utils/pluginUtils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/app/src/utils/pluginUtils.tsx b/desktop/app/src/utils/pluginUtils.tsx index 655274285..8edfa3743 100644 --- a/desktop/app/src/utils/pluginUtils.tsx +++ b/desktop/app/src/utils/pluginUtils.tsx @@ -286,7 +286,7 @@ export function computePluginLists( } }); uninstalledMarketplacePlugins.forEach((plugin) => { - if (client.supportsPlugin(plugin.id)) { + if (plugin.pluginType !== 'device' && client.supportsPlugin(plugin.id)) { downloadablePlugins.push(plugin); } });