Skip to content

Commit 218c15c

Browse files
committed
fix(gen-config): fix generate type list bug
1 parent 5e41212 commit 218c15c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/gen-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ const createQuestions = () => {
6060
type: "checkbox",
6161
name: "typeList",
6262
message: "choice types",
63-
choices: (answers) => { return typeListChoices(answers.emoji) }
63+
choices: (answers) => { return typeListChoices(answers.emoji) },
64+
when: (answers) => { return answers.type }
6465
},
6566
{
6667
type: "list",

0 commit comments

Comments
 (0)