Skip to content

Commit

Permalink
EPMRPP-88969 || GA switcher parameter has wrong value when selecting … (
Browse files Browse the repository at this point in the history
#3714)

* EPMRPP-88969 || GA switcher parameter has wrong value when selecting value in ML tab

* EPMRPP-88969 || Code Review fix - 1
  • Loading branch information
BlazarQSO authored Jan 8, 2024
1 parent 4ef030b commit bfef75c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,8 @@ const MakeDecision = ({ data }) => {
eventsInfo: { editDefectsEvents = {} },
items,
} = data;
const {
issueActionType,
suggestedItems,
selectManualChoice: {
issue: { issueType },
},
} = modalState;
const { issueActionType, suggestedItems } = modalState;
const { issueType } = modalState[ACTIVE_TAB_MAP[activeTab]].issue;

const hasSuggestions = !!suggestedItems.length;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const MakeDecisionTabs = ({
}) => {
const { formatMessage } = useIntl();
const [selectedMLSuggest, setSelectedMLSuggest] = useState(null);
const [animationSuggest, setAimationSuggest] = useState(true);
const [animationSuggest, setAnimationSuggest] = useState(true);
const [selectDefectTab, machineLearningTab, copyFromHistoryLineTab] = tabs;
const source = modalState.suggestChoice;

Expand All @@ -55,7 +55,7 @@ export const MakeDecisionTabs = ({
setSelectedMLSuggest(index);

if (index === 0) {
setAimationSuggest(false);
setAnimationSuggest(false);
}

const { testItemResource, logs, suggestRs } = suggestedItems.find(
Expand Down

0 comments on commit bfef75c

Please sign in to comment.