Skip to content

Safe navigation migration does unnecessary changes #69274

@kemsky

Description

@kemsky

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

[condition]="category?.category != null" such code gets overwritten for no reason.

furthermore, another migration adds unnecessary suppressions to tsconfig files (nullishCoalescingNotNullable, optionalChainNotNullable) even when project is not using strict nullability at all.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Metadata

Metadata

Assignees

Labels

area: migrationsIssues related to `ng update`/`ng generate` migrations

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions