From a5189b8db5875db405e727b66b1a65dbf5ee0fe5 Mon Sep 17 00:00:00 2001 From: maria-hambardzumian <164881199+maria-hambardzumian@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:47:18 +0400 Subject: [PATCH] EPMRPP-89691 || Update event parameter "pattern_analysis" (#3928) --- app/src/controllers/appInfo/selectors.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/controllers/appInfo/selectors.js b/app/src/controllers/appInfo/selectors.js index 0035ea2568..e19a3c4ad7 100644 --- a/app/src/controllers/appInfo/selectors.js +++ b/app/src/controllers/appInfo/selectors.js @@ -18,6 +18,7 @@ import { createSelector } from 'reselect'; import { idSelector, isAdminSelector } from 'controllers/user/selectors'; import { autoAnalysisEnabledSelector, + enabledPattersSelector, patternAnalysisEnabledSelector, projectInfoIdSelector, } from 'controllers/project/selectors'; @@ -77,6 +78,7 @@ export const baseEventParametersSelector = createSelector( projectInfoIdSelector, isAdminSelector, analyzerExtensionsSelector, + enabledPattersSelector, ( instanceId, buildVersion, @@ -86,12 +88,14 @@ export const baseEventParametersSelector = createSelector( projectInfoId, isAdmin, analyzerExtensions, + enabledPatterns, ) => ({ instanceId, buildVersion, userId, isAutoAnalyzerEnabled, - isPatternAnalyzerEnabled, + isPatternAnalyzerEnabled: + !!enabledPatterns.length && String(isPatternAnalyzerEnabled) === 'true', projectInfoId, isAdmin, isAnalyzerAvailable: !!analyzerExtensions.length,