Skip to content

fixed installation error when invalid override instructions present#19230

Merged
IDCs merged 1 commit intomasterfrom
fix/19143
Jan 8, 2026
Merged

fixed installation error when invalid override instructions present#19230
IDCs merged 1 commit intomasterfrom
fix/19143

Conversation

@IDCs
Copy link
Contributor

@IDCs IDCs commented Jan 6, 2026

fixes #19143

@IDCs IDCs self-assigned this Jan 6, 2026
@IDCs IDCs requested a review from a team January 6, 2026 08:13
result.overrideInstructions?.forEach((instr) => {
const key = (instr.source ?? instr.type).toUpperCase();
let key = instr.source ?? instr.type;
if (key == null) {
Copy link
Member

Choose a reason for hiding this comment

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

We only expect null? undefined isn't possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

key == null will handle both undefined and null

@IDCs IDCs merged commit e7f28f9 into master Jan 8, 2026
2 checks passed
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.

error: Cannot read properties of undefined (reading 'toUpperCase')

2 participants