Skip to content

Commit

Permalink
fix(@angular/cli): support default options for multiselect list x-prompt
Browse files Browse the repository at this point in the history
(cherry picked from commit af14769)
  • Loading branch information
pawelfras authored and jkrems committed Nov 13, 2024
1 parent c8bee84 commit c3925ed
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,15 @@ export abstract class SchematicsCommandModule

return definition.validator(Object.values(values).map(({ value }) => value));
},
default: definition.default,
default: definition.multiselect ? undefined : definition.default,
choices: definition.items?.map((item) =>
typeof item == 'string'
? {
name: item,
value: item,
}
: {
...item,
name: item.label,
value: item.value,
},
Expand Down

0 comments on commit c3925ed

Please sign in to comment.