We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8bee84 commit c3925edCopy full SHA for c3925ed
packages/angular/cli/src/command-builder/schematics-command-module.ts
@@ -204,14 +204,15 @@ export abstract class SchematicsCommandModule
204
205
return definition.validator(Object.values(values).map(({ value }) => value));
206
},
207
- default: definition.default,
+ default: definition.multiselect ? undefined : definition.default,
208
choices: definition.items?.map((item) =>
209
typeof item == 'string'
210
? {
211
name: item,
212
value: item,
213
}
214
: {
215
+ ...item,
216
name: item.label,
217
value: item.value,
218
0 commit comments