l-min-components 1.7.1548 → 1.7.1549
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -72,10 +72,10 @@ const ReportQuestions = ({
|
|
|
72
72
|
onSwitchQuestion,
|
|
73
73
|
loading,
|
|
74
74
|
mainTitle,
|
|
75
|
-
defaultSelected,
|
|
76
75
|
}) => {
|
|
77
76
|
const { findText } = useTranslation(wordStore);
|
|
78
77
|
const [questionList, setQuestionList] = useState([]);
|
|
78
|
+
const [defaultSelected, setDefaultSelected] = useState(1);
|
|
79
79
|
useEffect(() => {
|
|
80
80
|
if (questions?.length) {
|
|
81
81
|
setQuestionList(questions);
|
|
@@ -140,6 +140,7 @@ const ReportQuestions = ({
|
|
|
140
140
|
accountType={accountType}
|
|
141
141
|
data={toggle}
|
|
142
142
|
onClose={() => {
|
|
143
|
+
setDefaultSelected(toggle?.defaultSelected || 1);
|
|
143
144
|
setToggle(null);
|
|
144
145
|
}}
|
|
145
146
|
/>
|
|
@@ -159,9 +160,11 @@ const ReportQuestions = ({
|
|
|
159
160
|
setAIScore(0);
|
|
160
161
|
setInstructorScore(0);
|
|
161
162
|
setComment(null);
|
|
163
|
+
setDefaultSelected(1);
|
|
162
164
|
};
|
|
163
165
|
const handleNext = () => {
|
|
164
166
|
reset();
|
|
167
|
+
|
|
165
168
|
if (nextId) onSwitchQuestion?.(nextId);
|
|
166
169
|
};
|
|
167
170
|
const handlePrev = () => {
|