diff --git a/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionModal.jsx b/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionModal.jsx index aa6f5a58de..81c2b42151 100644 --- a/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionModal.jsx +++ b/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionModal.jsx @@ -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; diff --git a/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionTabs/makeDecisionTabs.jsx b/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionTabs/makeDecisionTabs.jsx index ea0607a985..b4d48a1b3f 100644 --- a/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionTabs/makeDecisionTabs.jsx +++ b/app/src/pages/inside/stepPage/modals/makeDecisionModal/makeDecisionTabs/makeDecisionTabs.jsx @@ -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; @@ -55,7 +55,7 @@ export const MakeDecisionTabs = ({ setSelectedMLSuggest(index); if (index === 0) { - setAimationSuggest(false); + setAnimationSuggest(false); } const { testItemResource, logs, suggestRs } = suggestedItems.find(