design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Lookup without selectedIndex fails

Open mmoriar1 opened this issue 10 years ago • 1 comments

Due to how our app builds, the this.props.selectedIndex || null line in setting this.state drops the || null check, and all strict equality !== or === with null fail because this.state.selectedIndex is undefined. Hacky way to fix this is to make it !=, or you can drop the || null check and check against undefined. There are probably other ways to fix this too :)

mmoriar1 avatar Mar 08 '16 04:03 mmoriar1

Thanks for submitting the issue! Please take a look at my PR: https://github.com/salesforce-ux/design-system-react/pull/199

donnieberg avatar Mar 08 '16 18:03 donnieberg