Commit ced0adc
fix: use isDefined() instead of comparing against string 'undefined'
Comparing sets[i].breakout != 'undefined' checks against the
literal string, not the undefined type. When breakout is actually
undefined, the comparison is true (different types), causing
.length to be called on undefined (TypeError). Use the existing
isDefined() helper which does typeof correctly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3279c18 commit ced0adc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3605 | 3605 | | |
3606 | 3606 | | |
3607 | 3607 | | |
3608 | | - | |
| 3608 | + | |
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
| |||
0 commit comments