Skip to content

Commit

Permalink
EPMRPP-89691 || Update event parameter "pattern_analysis" (#3928)
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-hambardzumian authored Jul 24, 2024
1 parent dcc6191 commit a5189b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/controllers/appInfo/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { createSelector } from 'reselect';
import { idSelector, isAdminSelector } from 'controllers/user/selectors';
import {
autoAnalysisEnabledSelector,
enabledPattersSelector,
patternAnalysisEnabledSelector,
projectInfoIdSelector,
} from 'controllers/project/selectors';
Expand Down Expand Up @@ -77,6 +78,7 @@ export const baseEventParametersSelector = createSelector(
projectInfoIdSelector,
isAdminSelector,
analyzerExtensionsSelector,
enabledPattersSelector,
(
instanceId,
buildVersion,
Expand All @@ -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,
Expand Down

0 comments on commit a5189b8

Please sign in to comment.