Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vscode-ui): Correctly populate defaults #892

Merged
merged 1 commit into from Nov 21, 2019

Conversation

mrmeku
Copy link
Contributor

@mrmeku mrmeku commented Nov 15, 2019

Fixes parsing defaults from angular json
Fixes setting defaults from schematic fields (many were appearing as false)
Fixes setting default for select menus

@@ -294,7 +294,7 @@ export class TaskExecutionFormComponent implements OnInit, AfterViewChecked {
const defaultValues: { [key: string]: string } = {};
architect.schema.forEach(field => {
defaultValues[field.name] =
field.defaultValue || field.type === 'boolean' ? 'false' : '';
field.defaultValue || (field.type === 'boolean' ? 'false' : '');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stupid order or operations

@jaysoo jaysoo merged commit 091ccd2 into nrwl:master Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants