Skip to content

Commit 57f15d5

Browse files
committed
fix: change plan list question title to cn
1 parent cb6fbfd commit 57f15d5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

common/view/finder.view.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ async function studyMode(baseDir = process.cwd()) {
3030
if (createMode === 'single') {
3131
const { planSubGroups } = await getPlanQuestionList(planSlug)
3232
const planList = planSubGroups.reduce((acc, cur) => {
33-
acc.push(...cur.questions.map((res) => {
34-
return {
35-
cnTitle: res.translatedTitle,
36-
enTitle: res.titleSlug
37-
}
38-
}))
33+
acc.push(
34+
...cur.questions.map((res) => {
35+
return {
36+
cnTitle: res.translatedTitle,
37+
enTitle: res.titleSlug
38+
}
39+
})
40+
)
3941
return acc
4042
}, [])
4143
const singleMode = {

0 commit comments

Comments
 (0)